Advertisement
Guest User

d

a guest
May 3rd, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void getEmployeeInfo()
  5. {
  6. long empId[7];
  7. empId[0] = 5658845;
  8. empId[1] = 4520125;
  9. empId[2] = 7895122;f
  10. empId[3] = 8777541;
  11. empId[4] = 8451277;
  12. empId[5] = 1302850;
  13. empId[6] = 7580489;
  14. cout << " The Employer Id's are: \n";
  15. for (int i = 0; i < 7; i++)
  16. {
  17. //Display EmpId names
  18. cout << empId[i] << endl;
  19.  
  20. }
  21. }
  22.  
  23. int main()
  24. {
  25.  
  26.  
  27. void getEmployeeInfo();
  28.  
  29. long hours[7];
  30. hours[0] = 0;
  31. hours[1] = 0;
  32. hours[2] = 0;
  33. hours[3] = 0;
  34. hours[4] = 0;
  35. hours[5] = 0;
  36. hours[6] = 0;
  37. for (int h = 0; h < 7; h++)
  38. {
  39. //let user enter hours
  40. cout << " Enter the hours you've worked.\n";
  41. cin >> hours[h];
  42. cout << " The hours entered are: \n" << hours[h] << endl;
  43. }
  44.  
  45. double payRate[7];
  46. payRate[0] = 0.0;
  47. payRate[1] = 0.0;
  48. payRate[2] = 0.0;
  49. payRate[3] = 0.0;
  50. payRate[4] = 0.0;
  51. payRate[5] = 0.0;
  52. payRate[6] = 0.0;
  53. for (int p = 0; p < 7; p++)
  54. {
  55. cout << "Enter your Pay rate: \n";
  56. }
  57.  
  58. double wages[7];
  59. wages[0] = 0.0;
  60. wages[1] = 0.0;
  61. wages[2] = 0.0;
  62. wages[3] = 0.0;
  63. wages[4] = 0.0;
  64. wages[5] = 0.0;
  65. wages[6] = 0.0;
  66. for (int w = 0; w < 7; w++)
  67. {
  68. cout << " Enter your wages: \n";
  69. cin >> wages[w];
  70.  
  71. }
  72.  
  73.  
  74.  
  75.  
  76. return 0;
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement