Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //formulas
- f = g * 0.15;
- s = g * 0.035;
- ss = g * 0.0575;
- m = g * 0.0275;
- p = g * 0.05;
- h = 75.00;
- n = g - (f+s+ss+m+p+h);
- //outputs
- cout<<fname<<" "<<lname<<endl;
- cout<<fixed<<setprecision(2);
- cout<<"Gross Amount: "<<g<<endl;
- cout<<"Federal Tax: "<<f<<endl;
- cout<<"State Tax: "<<s<<endl;
- cout<<"Social Security Tax: "<<ss<<endl;
- cout<<"Medicare/Medicaid Tax: "<<m<<endl;
- cout<<"Pension Plan: "<<p<<endl;
- cout<<"Health Insurance: "<<h<<endl;
- cout<<"Net Pay: "<<n<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement