Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Grade1 5000AED Grade2 7000AED Grade3 10000AED Grade4 15000AED Grade5 20000AED On

ID: 3615635 • Letter: G

Question

Grade1           5000AED

Grade2           7000AED

Grade3           10000AED

Grade4           15000AED

Grade5           20000AED

Once the user has entered the grade of employment, the programselects the correct salary for the grade entered. This should bedone using the switch case statements.

To this the program adds 5% per year as experience allowance togive the user total salary. From the total salary income tax isdeducted. If the total salary is less than 7000 AED, 2% income taxis deducted. If the total salary is between 7000 and 10000 AED, 5%income tax is deducted. If the total salary is between 10000 and15000 AED, 7% income tax is deducted. If the total salary isgreater than 15000 AED, 10% income tax is deducted.

Enter Employment Grade: 3

Enter Years of Experience: 5

Experience Allowance = 2500

Total Pay = 12500

Income Tax = 875

Pay After Tax Deduction = 11625

Explanation / Answer

//Please Rate /*Borland C++ is used to debug and compilation of thiscode
#include<iostream.h> #include<conio.h>
void main() { int syears,grade,incre=0;    int bsal=0,gsal,netsal=0;    float tax;
   cout<<"Enter Your Grade:";    cin>>grade;    cout<<"Enter No of years:";    cin>>syears;
   switch(grade)    {    case 1:    bsal=5000;      incre=250;    break;    case 2:    bsal= 7000;      incre=350;    break;
   case 3:    bsal=10000;      incre=500;    break;    case 4:    bsal=15000;      incre=750;    break;    case 5:    bsal=20000;      incre=1000;    break;    }    int allowance=0;    allowance=incre*syears;    cout<<" ExperienceAllowance:"<<allowance<<" AED";
   gsal=(bsal+allowance);    cout<<" Total Pay:"<<gsal<<"AED";
   if(gsal<7000)    tax=gsal*0.02;   if((gsal>=7000)&&(gsal<10000))    tax=gsal*0.05;   if((gsal>=10000)&&(gsal<15000))    tax=gsal*0.07;    if(gsal>=15000)    tax=gsal*0.10;
   cout<<" Total Tax:"<<tax<<"AED"; cout<<" Net Salary Payable:"<<(gsal-tax)<<"AED";
   getch(); }
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote