Write a 70- to 100-word short-answer response for the following: 7 discussions
- Supporting Activity: Templates
How could you have used templates for your final project? What are some possible benefits and drawbacks?
- Supporting Activity: STL Templates
How could you have used the STL templates for your final project? What are some possible benefits and drawbacks?
- Supporting Activity: Dead Language
Imagine a friend tells you that C++ is a dead computer language. Would you agree or disagree? Why or why not?
- Supporting Activity: C++ Skills
What resources do you plan to use after the course to continue learning about and practicing C++? How will you improve your C++ skills? What C++ projects might benefit you, your workplace, or a volunteer organization?
- How inheritance fits into object-oriented programming
- How you use the protected keyword
- When you should use a virtual destructor
Datamax, Inc. Overtime Pay Program
The Instructions of this Assignment Files is in attachment Resources: Appendix D
Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees. Your program must account for employee’s salary, total hours worked, and hours worked more than 40 in a week. It must then provide an output that is useful and easily understood by company management.
Compile your program using the following background information and the code outline in Appendix D.
Submit your project as an attachment, including the code and the output.
- The company has three employees: Mark, John, and Mary.
- The end user needs to be prompted for three specific pieces of input–name, hours worked, and hourly wage.
- Calculate overtime if the input is greater than 40 hours per week.
- Provide six test plans to verify the logic within the program.
- Plan 1 must display the proper information for employee #1 with overtime pay.
- Plan 2 must display the proper information for employee #1 with no overtime pay.
- Plans 3-6 are duplicates of plan 1 and 2 but for the other two employees.
- Define a base class to use for the entire program.
- The class holds the function calls and the variables related to the overtime pay calculations.
- Define one object per employee. Remember that there will be three employees.
- Your program must take the objects created and implement calculations based on the total salaries, total hours, and total number of overtime hours. See the Employee Summary Data section of the sample output.
Logic steps to complete your program:
- Define your base class.
- Define your objects from your base class.
- Prompt for user input, updating your object classes for all three users.
- Implement your overtime pay calculations.
- Display overtime or regular time pay calculations. See the sample output.
- Implement object calculations by summarizing your employee objects and display the summary information in the example.