Advertisement
akosiraff

DataMax Employee Payroll C++

May 6th, 2013
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/datamax-employee-payroll-c/
  3. Your company, Datamax, Inc., is in the process of automating its
  4. payroll systems. Your manager has asked you to create a program
  5. that calculates overtime pay for all employees. Your program must
  6. take into account an employee’s salary, total hours worked, and
  7. hours worked more than 40 in a week. It must then provide an
  8. output that is useful and easily understood by company
  9. management.
  10. Compile
  11. your program utilizing the following background information
  12. and the code outline in Appendix D.
  13. Submit
  14. your project as an attachment, including the code and the
  15. output.
  16. Company background:
  17. ?
  18. The company has three employees: Mark, John, and Mary.
  19. ?
  20. The end user needs to be prompted for three specific pieces of
  21. input—name, hours worked, and hourly wage.
  22. ?
  23. Calculate overtime if the input is greater than 40 hours per
  24. week.
  25. ?
  26. Provide six test plans to verify the logic within the program.
  27. o
  28. Plan 1 must display the proper information for employee #1
  29. with overtime pay.
  30. o
  31. Plan 2 must display the proper information for employee #1
  32. with no overtime pay.
  33. o
  34. Plans 3–6 are duplicates of plan 1 and 2 but for the other
  35. two employees.
  36. Program requirements:
  37. Define a base class to use for the entire program.
  38. ?
  39. The class holds the function calls and the variables related to
  40. the overtime pay calculations.
  41. ?
  42. Define one object per employee. Remember that there will be
  43. three employees.
  44. ?
  45. Your program must take the objects created and implement
  46. calculations based on the total salaries, total hours, and total
  47. number of overtime hours. See the Employee Summary Data
  48. section of the sample output.
  49. Logic steps to complete your program:
  50. ?
  51. Define your base class.
  52. ?
  53. Define your objects from your base class.
  54. ?
  55. Prompt for user input, updating your object classes for all three
  56. users.
  57. ?
  58. Implement your overtime pay calculations.
  59. ?
  60. Display overtime or regular time pay calculations. See the
  61. sample output.
  62. ?
  63. Implement object calculations by summarizing your employee
  64. objects and display the summary information in the example.
  65. Sample output:
  66. Welcome to the Employee Pay Center
  67. Enter the employee name = John
  68. Enter the hours worked = 44
  69. Enter his or her hourly wage = 3.33
  70. Enter the employee name = Mary
  71. Enter the hours worked = 33
  72. Enter his or her hourly wage = 2.22
  73. Enter the employee name = Mark
  74. Enter the hours worked = 29
  75. Enter his or her hourly wage = 2.22
  76. Employee Name …………. = John
  77. Base Pay ……………… = 133.20
  78. Hours in Overtime ……… = 4
  79. Overtime Pay Amount…….. = 19.98
  80. Total Pay …………….. = 153.18
  81. Employee Name …………. = Mary
  82. Base Pay ……………… = 73.26
  83. Hours in Overtime ……… = 0
  84. Overtime Pay Amount…….. = 0.00
  85. Total Pay …………….. = 73.26
  86. Employee Name …………. = Mark
  87. Base Pay ……………… = 64.38
  88. Course Design Guide
  89. IT/218 Version 3
  90. 13
  91. Hours in Overtime ……… = 0
  92. Overtime Pay Amount…….. = 0.00
  93. Total Pay …………….. = 64.38
  94. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  95. %%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%
  96. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  97. %%%% Total Employee Salaries ….. = 290.82
  98. %%%% Total Employee Hours …….. = 106
  99. %%%% Total Overtime Hours……… = 4
  100. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  101. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  102.  
  103.  
  104. Download: http://solutionzip.com/downloads/datamax-employee-payroll-c/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement