Advertisement
Guest User

Alignment >

a guest
Jan 28th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. //formulas
  2.         f = g * 0.15;
  3.         s = g * 0.035;
  4.         ss = g * 0.0575;
  5.         m = g * 0.0275;
  6.         p = g * 0.05;
  7.         h = 75.00;
  8.         n = g - (f+s+ss+m+p+h);
  9.    
  10. //outputs
  11.         cout<<fname<<" "<<lname<<endl;
  12.         cout<<fixed<<setprecision(2);
  13.         cout<<"Gross Amount: "<<g<<endl;
  14.         cout<<"Federal Tax: "<<f<<endl;
  15.         cout<<"State Tax: "<<s<<endl;
  16.         cout<<"Social Security Tax: "<<ss<<endl;
  17.         cout<<"Medicare/Medicaid Tax: "<<m<<endl;
  18.         cout<<"Pension Plan: "<<p<<endl;
  19.         cout<<"Health Insurance: "<<h<<endl;
  20.         cout<<"Net Pay: "<<n<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement