Advertisement
Guest User

Hehe

a guest
Aug 27th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.    
  9.     int empNo;
  10.     char first[50];
  11.     char middle[50];
  12.     char last[50];
  13.     double basicPay;
  14.     double otp;
  15.     double deduction;
  16.     double sum;
  17.     double difference;
  18.     double Gp;
  19.     double Np;
  20.    
  21.     cout << "Employee No:";
  22.     cin >> empNo;
  23.     cout << "Employee Name:";
  24.     cin >> first;
  25.     cin >> middle;
  26.     cin >> last;
  27.     cout << "Basic Pay: ";
  28.     cin >> basicPay;
  29.     cout << "Over Time Pay: ";
  30.     cin >> otp;
  31.     cout << "Deduction: ";
  32.     cin >> deduction;
  33.    
  34.     sum = basicPay + otp;
  35.    
  36.     cout << "Grosspay: " <<sum;
  37.    
  38.     difference = sum - deduction;
  39.    
  40.     cout << "Netpay:" <<difference;
  41.    
  42.    
  43.    
  44.    
  45.    
  46.    
  47.    
  48.    
  49.    
  50.    
  51.    
  52.    
  53.     system("PAUSE");
  54.     return EXIT_SUCCESS;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement