daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Andrew lohr
  2. //Assignment 5
  3.  
  4. #include<iostream>
  5. #include<string>
  6. #include<iomanip>
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12.     string name;
  13.     double gross;
  14.     cout<<fixed<<showpoint<<setprecision(2);
  15.    
  16.     cout<<"Enter Employee Name.";
  17.     getline(cin,name);
  18.     cout<<"Enter Employee Gross Amount";
  19.     cin>>gross;
  20.     double ftax= (gross*.15),stax=(gross*.035),sst=(gross*.0575) ,mmt=(gross*.0275) ,pp=(gross*.05)  ,hi=(75.00),
  21.     netpay=gross-ftax-stax-sst-mmt-pp-hi;
  22.    
  23.     cout<<"\nGross Amount:........."<<internal<<setfill('.')<<setw(20)<<'$'<<gross
  24.     <<"\nFederal Tax:.........."<<internal<<setfill('.')<<setw(20)<<'$'<<ftax
  25.     <<"\nState Tax:............"<<internal<<setfill('.')<<setw(20)<<'$'<<stax
  26.     <<"\nSocial Security Tax:.."<<internal<<setfill('.')<<setw(20)<<'$'<<sst
  27.     <<"\nMedicare/Medicade Tax:"<<internal<<setfill('.')<<setw(20)<<'$'<<mmt
  28.     <<"\nPension Plan:........."<<internal<<setfill('.')<<setw(20)<<'$'<<pp
  29.     <<"\nHealth Insurance:....."<<internal<<setfill('.')<<setw(20)<<'$'<<hi
  30.     <<"\nNet Pay:.............."<<internal<<setfill('.')<<setw(20)<<'$'<<netpay;
  31.  
  32.     system("pause>nul");
  33.                  
  34.    }
  35.  
  36. Enter Employee Name.Andrew Lohr
  37. Enter Employee Gross Amount3575
  38.  
  39. Gross Amount:............................$3575.00
  40. Federal Tax:.............................$536.25
  41. State Tax:...............................$125.13
  42. Social Security Tax:.....................$205.56
  43. Medicare/Medicade Tax:...................$98.31
  44. Pension Plan:............................$178.75
  45. Health Insurance:........................$75.00
  46. Net Pay:.................................$2356.00
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top