Using the flow chart write and a program in C++ Language to compute gross and net pay. Use the following variables. StateTaxRate = 0.0825, countyTaxRate = 0.175
#include<iostream>
using namespace std;
int main(){
float a=0.0825, b=0.175, grossSalary=0, netSalary=0;
cout<<"\nEnter your Gross salary: ";
cin>>grossSalary;
netSalary= grossSalary- ((grossSalary*a)+(grossSalary*b));
cout<<"\nYOUR SALARY IS AS FOLLOWS";
cout<<"\nGross Salary: "<<grossSalary;
cout<<"\n Net salary :"<<netSalary;
return 0;
}
Comments
Leave a comment