Answer to Question #279897 in C++ for palmer

Question #279897

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

1
Expert's answer
2021-12-15T07:00:00-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog