Define a base class to use for the entire program

Assignment Help C/C++ Programming
Reference no: EM13338914

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 take into account an 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 utilizing the following background information and the code outline in Appendix D.

Submityour project as an attachment, including the code and the output.

Company background:

The company has three employees: Mark, John, and Mary.

The end user needs to be prompted for three specific pieces ofinput-name, hours worked, and hourly wage.

Calculate overtime if the input is greater than 40 hours perweek.

Provide six test plans to verify the logic within the program.

oPlan 1 must display the proper information for employee #1 with overtime pay.
oPlan 2 must display the proper information for employee #1 with no overtime pay.
oPlans 3-6 are duplicates of plan 1 and 2 but for the other two employees.

Program requirements:

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. Sample output:

Welcome to the Employee Pay Center Enter the employee name = John Enter the hours worked = 44

Enter his or her hourly wage = 3.33

Enter the employee name = Mary Enter the hours worked = 33

Enter his or her hourly wage = 2.22

Enter the employee name = Mark Enter the hours worked = 29

Enter his or her hourly wage = 2.22

Reference no: EM13338914

Questions Cloud

What is the implied expected rate of inflation : What is the implied expected rate of inflation and efficient markets and risk-neutral pricing, what yield should you expect to find on a 3-month T-bill forward contract deliverable in 3 months?
Write a program that inputs two characters : Write a program that inputs two characters from the keyboard and passes them to function packCharacters.
What is the pebbles acceleration : Your roommate is working on his bicycle and has the bike upside down. He spins the 56.0cm -diameter wheel, What is the pebble's acceleration
The operating budget : The Operating Budget
Define a base class to use for the entire program : 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.
What is the tension in the right wire : In a butcher shop, a horizontal steel bar of mass 4.57 kg and length 1.27 m is supported by two vertical wires attached to its ends. What is the tension in the right wire
Which sustainable supply chain practice used by tiffany & co : Which sustainable supply chain practice used by Tiffany & Co. is the most innovative? Explain your position.
What is the max value the coefficient of kinetic friction : A uniform rectangular bookcase of height 1.63 m and width 1.03 m is to be pushed at a constant velocity across a level floor. The bookcase is pushed horizontally at its top edge, at the distance H above the floor.
What is the terminal speed for skier : What is the terminal speed for an 76.0kg skier going down a 38.0? snow-covered slope on wooden skis ?k= 0.060

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement a simplified version of the set class

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

  You are to add mean, standard deviation

You are to add mean, standard deviation, and insert in order functionality to your statistics list program. Insert in order means that you will add a function called find_index that will locate the place in the array that a new value should be ins..

  Write a loop that fills a vector

Write a loop that fills a vector V with ten  different  random numbers between 1 and 100. output must actually display the random numbers to get credit.

  Write a c++ program that displays a table showing the price

write a C++ program that displays a table showing the price of silver and gold.

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a dor, two windows, and a roof with a chimney

  Use a for loop to generate 100 random numbers.

Use a For Loop to generate 100 random numbers. Determine the most current maximum and minimum number as the random numbers are being generated. This is referred tp as a "running" maximum and minimum. Display the running maximum and minimum values as ..

  Amanda and tyler opened a business

Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container. (For simplicity, you may assume that the con..

  Add a non member function

For the code below add the following. Add a non member function that will run the show function of a Sport object. This object is the one parameter of the function.

  That takes the time as six integer arguments

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour, minute, and second) and returns the number of seconds since the beginning of the year.

  Reverses all the element of an array

Write a function that reverses all the element of an array.that is,the first element is exchanged with the last element; the second element is exchange with the second to the last element,and so on

  Explain initialize variables counting the lines and letters

If the output file cannot open, exit the program. Initialize variables counting the lines and letters. Write a program that reads a given text file, outputs the text file as is, and also prints the number of lines and the number of times each lette..

  C program to compute parking fare for customers

Write C program to compute parking fare for customers who park their cars in parking lot when following information is provided: A character showing type of vehicle: C for car, B for bus and T for truck

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd