+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
CS201 Assignment 01 Fall 2020 Solution / Discussion
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
CS201 Assignment 1 Solution 2020, CS201 assignment no 1 solution fall 2020, CS201, CS201Assignment1, CS201AssignmentSolution, CS201SolvedAssignment, CS201Assignment1Solution2020, CS201Assignment1fall2020, CS201AssignmentSolution, CS201Programming, CS201AssignmentNo1, CS201Assignment1Solution2020, CS201Solution CS201Assignment1Solution2020 CS201SolutionLink CS201Assignment1Solution2020 CS201DownloadLink CS201AssignmentPDF CS201AssignmentCPP CS201Assignment1Solution2020 CS201AssignmentSolutionCPP CS201CPPFile CS201Assignment CS201Assignment1Solution2020 CS201AssignmentDownload CS201Solve CS201Assignment1Solution2020 CS201Assignment1 CS201Assignment1Solution2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020 CS201 Assignment 1 Solution 2020
cs201 assignment 1 solution 2020
Right Click on the below link, then click on “Save link as” to download the file.
#CS201 Assignment 1 IDEA SOL FALL 2020
#include<iostream>
using namespace std;
main()
{
long sal_level_a=125000, sal_level_b=80000, sal_level_c=45000;
int total_employees=10;
int welfare_fund=600;
int tax_level_a, total_tax_A, tax_level_b, total_tax_B, tax_level_c,total_tax_C, total_tax;
int option;
long Net_salary_A, Net_salary_B, Net_salary_C, total_pay;
// FUNDS
int total_fund=total_employees*welfare_fund;
long anual_salary_A=sal_level_a*12;
long anual_salary_B=sal_level_b*12;
long anual_salary_C=sal_level_c*12;
if(anual_salary_A>600000)
{
tax_level_a=sal_level_a*1/100;
}
total_tax_A=tax_level_a*2;
if(anual_salary_B>600000)
{
tax_level_b=sal_level_b*1/100;
}
total_tax_B=tax_level_b*3;
if(anual_salary_C>600000)
{
tax_level_c=sal_level_c*1/100;
}
total_tax_C=tax_level_c*5;
// TAX CALCULATION
total_tax=total_tax_A+total_tax_B+total_tax_C;
// NET SALARIES
Net_salary_A= sal_level_a - tax_level_a - welfare_fund;
Net_salary_B= sal_level_b - tax_level_b - welfare_fund;
Net_salary_C= sal_level_c - tax_level_c - welfare_fund;
//total_pay=(Net_salary_A*2)+(Net_salary_B*3)+(Net_salary_C*5);
total_pay=(sal_level_a*2)+(sal_level_b*3)+(sal_level_c*5);
cout"Total Monthly tax deduction of all employees : "total_tax;
cout"\nTotal amount of welfare fund collected : "total_fund;
cout"\nNet monthly salary of level A employees : "Net_salary_A;
cout"\nNet monthly salary of level B employees : "Net_salary_B;
cout"\nNet monthly salary of level C employees : "Net_salary_C;
cout"\nTotal amount paid by university after a month : "total_pay;
// MENU
cout"\nEnter 1 to know the tax collection of level A employees";
cout"\nEnter 2 to know the tax collection of level B employees";
cout"\nEnter 3 to know the tax collection of level C employees"endl;
cin>>option;
if(option==1)
{
cout"Tax collection of level A employee is Rs. "total_tax_A;
}
else if(option==2)
{
cout"Tax collection of level B employee is Rs. "total_tax_B;
}
else if(option==3)
{
cout"Tax collection of level C employee is Rs. "total_tax_C;
}
}
Above mentioned cod run on DVE C++ then output CPP file submit if you found any mistake kindly correct own yourself
#CS201 Assignment 1 IDEA SOL FALL 2020
#include<iostream>
using namespace std;
main()
{
long sal_level_a=125000, sal_level_b=80000, sal_level_c=45000;
int total_employees=10;
int welfare_fund=600;
int tax_level_a, total_tax_A, tax_level_b, total_tax_B, tax_level_c,total_tax_C, total_tax;
int option;
long Net_salary_A, Net_salary_B, Net_salary_C, total_pay;
// FUNDS
int total_fund=total_employees*welfare_fund;
long anual_salary_A=sal_level_a*12;
long anual_salary_B=sal_level_b*12;
long anual_salary_C=sal_level_c*12;
if(anual_salary_A>600000)
{
tax_level_a=sal_level_a*1/100;
}
total_tax_A=tax_level_a*2;
if(anual_salary_B>600000)
{
tax_level_b=sal_level_b*1/100;
}
total_tax_B=tax_level_b*3;
if(anual_salary_C>600000)
{
tax_level_c=sal_level_c*1/100;
}
total_tax_C=tax_level_c*5;
// TAX CALCULATION
total_tax=total_tax_A+total_tax_B+total_tax_C;
// NET SALARIES
Net_salary_A= sal_level_a - tax_level_a - welfare_fund;
Net_salary_B= sal_level_b - tax_level_b - welfare_fund;
Net_salary_C= sal_level_c - tax_level_c - welfare_fund;
//total_pay=(Net_salary_A*2)+(Net_salary_B*3)+(Net_salary_C*5);
total_pay=(sal_level_a*2)+(sal_level_b*3)+(sal_level_c*5);
cout"Total Monthly tax deduction of all employees : "total_tax;
cout"\nTotal amount of welfare fund collected : "total_fund;
cout"\nNet monthly salary of level A employees : "Net_salary_A;
cout"\nNet monthly salary of level B employees : "Net_salary_B;
cout"\nNet monthly salary of level C employees : "Net_salary_C;
cout"\nTotal amount paid by university after a month : "total_pay;
// MENU
cout"\nEnter 1 to know the tax collection of level A employees";
cout"\nEnter 2 to know the tax collection of level B employees";
cout"\nEnter 3 to know the tax collection of level C employees"endl;
cin>>option;
if(option==1)
{
cout"Tax collection of level A employee is Rs. "total_tax_A;
}
else if(option==2)
{
cout"Tax collection of level B employee is Rs. "total_tax_B;
}
else if(option==3)
{
cout"Tax collection of level C employee is Rs. "total_tax_C;
}
}
Above mentioned cod run on DVE C++ then output CPP file submit if you found any mistake kindly correct own yourself
By Usama Khalid Awan
If user inputs wrong number then a message will be shown: “incorrect input”.
#cs201 #cs201Assignmentsolution #cs201Assignment1
CS201 Assignment 1 Solution Fall 2020 || CS201 Assignment
CS201 Assignment 1 Solution Fall 2020 || CS201 Assignment
#cs201
#cs201Assignmentsolution
#cs201Assignment1
#cs201Assignment1solution
#cs201Assignment1solutionfall2020App
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post