Define a base class to use for the entire program

Assignment Help Programming Languages
Reference no: EM131321582

Resources: Appendices A & D

Examine the following situation:

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.

Submit your 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 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.

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.

Reference no: EM131321582

Questions Cloud

Difference between this stress-strain relationship : A rubber is subjected to a shear stress such that λx=l, λy=1. Obtain an expression relating the shear stress, and the shear strain, assuming shear strain=λ-1/λ. Comment on the difference between this stress/strain relationship and the one for simp..
How much is the stock worth : Using CAPM. A stock has a beta of 1.15, the expected return on the market is 11 percent, and the risk-free rate is 5 percent. What must the expected return on this stock be? ABC will pay a dividend of $3.00 and dividends will grow by 8%. The risk fre..
Single-slit diffraction pattern : Diffraction. In a single-slit diffraction pattern, the forth-order minimum is 1.5° from the center. What's the slit width if the wavelength is 450 nm? and 650 nm?
Yellow sodium light and observe : Double-slit experiment. (a) Suppose you illuminate the slits with 589 nm yellow sodium light and observe a 4.5 cm bright-fringe spacing on a screen 1.75 m away.
Define a base class to use for the entire program : 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.
Maximize the reflection : Visible light is incident on an oil film (n = 1.51) coating a puddle of water. What minimum oil thickness will maximize the reflection of each of these colors: blue (460 nm) and yellow (580 nm).
Explain the political and administrative issues : Has the implementation of Medicare actually forwarded the cause for national health insurance or impeded its progress? Discuss. Explain the political and administrative issues possibly playing a part in this respect
Discuss the pros and cons of both scenarios : Discuss the pros and cons of both scenarios. Specifically address how a subsidiary that provides products only to the parent can be fairly evaluated on performance. What do you believe is the best option for General Motors? Explain.
Find the resistance in each lamp : How many 30 watt lamps can you attach to a series circuit of four D-cell batteries (each at 1.5 volts) combined to deliver a current of 13 amperes?

Reviews

Write a Review

Programming Languages Questions & Answers

  C compiler will not compile the line of code in the center

In the following lines of code, the Miracle C compiler will not compile the line of code in the center (float x = 1/a;). Why does this occur? How can it be corrected?

  Advantages cloud computing

advantages Cloud computing

  Explain importance of developing strategy for navigation

Discuss the importance of developing a strategy for the navigation, and describe the common navigation elements. Navigation is a very important part of your portfolio.

  What criterion is being used to determine the best estimates

What we would like to do is create similar tables in an .rtf file that produces the same statistics for any numerical value against each level of a know classification/factor from any data set we wish to inspect.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Write class called flight which represents airline flight

Draw and implement the class called Flight which represents an airline flight. It must contain instance data which represents airline name (String), flight number (int), and the flight's origin city (String).

  Program to compute risk of weight-related health problems

A quantity known as the body mass (BMI) is used to calculate the risk of weight-related health problems. Write a program that accepts weight and height and then displays the BMI value and Status.

  Write function for three components of name

Write down the function, that given three components of name (first name, middle name or initial, and last name), returns single string object consisting of last name,

  Create a program that has an object type of contact

Create a program that has an object type of Contact. This contact will need to have the following attributes: Name, Birth Date, Phone Number, Address and Eye Color

  Describe how to prepare users for sales organization unit

Describe how you would prepare the users for sales organization unit and how you can set up user groups in particular conditions (global, universal, domain local).

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Write program to instantiate objects of inherited classes

X-Y coordinate pairs for four endpoints of Quadrilateral. Write program which instantiates objects of the classes and outputs each object's area.

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