Question: write a c++ program using switch statement that assigns to thevariable rank the expected salary of an employee whose rank hasbeen stored in rank, rank

write a c++ program using switch statement that assigns to thevariable rank the expected salary of an employee whose rank hasbeen stored in rank, rank A pays 9% tax, rank B pays 7% tax, rank Cpays 6% tax, and rank D pays 5% tax. Let your program accept therank of employee from user, and then calculate the Tax deductionand Net salary after tax deductions. Use the following table. Netsalary= salary -Tax .

RankABCD
Salary25000200001500010000

sample output:

Enter Rank:B

Tax deduction is 1400

the net salary is 18600

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!