Write a class name payroll

Assignment Help Basic Computer Science
Reference no: EM13215111

Write a class name Payroll, with the class declaration in a file called Payroll.h and the implementation in a file called Payroll.cpp. The class will have data members for an employee's hourly pay rate, number of hours worked and total pay for the week. All of the data members will be doubles. The class only needs one constructor which can be a default constructor that sets all data members to zero. Then add the mutators and accessor for the class. The program will have an array of 7 Payroll objects. The program will prompt the user for number of hours each employee has worked and will then display the amount of gross pay each has earned. Before asking the user for the hours, the program should set the pay rate for each employee without user input. Validation: Do not accept values greater than 60 for the number of hours worked.

Reference no: EM13215111

Questions Cloud

Explain black-scholes and binomial models : the attributes of the two widely accepted models used for option pricing: Black-Scholes and Binomial Models. Your paper should be completed in Word and be no less than two pages in length following APA format.
Explain what is the present value of the cash flows : You will receive $1,200 at the end of the next 15 years, assuming a 8% discount rate, what is the present value of the cash flows? Future value of single sum problem
What are the main differences between efs and bitlocker : The customer privacy data policy in your company's data classification standard requires encryption in two places: data stored in a user's personal data folders and data stored on the LAN's shared disk drives. Describe your solution for meeting th..
Is love bugs profit performance better or worse : Love Bug Used Auto Sales asked for your help in comparing the company's profit performance and financial position with the average for the auto sales industry. The proprietor has given you the company's income statement and balance sheet as well a..
Write a class name payroll : Before asking the user for the hours, the program should set the pay rate for each employee without user input. Validation: Do not accept values greater than 60 for the number of hours worked.
Describe two different kinds of communication software : Is Web search a database query? Explain your answer.
How should ethics be incorporated into making accounting : write a four-to-six sentence paragraph on the following question. Good business and accounting practices require the exercise of good judgment. How should ethics be incorporated into making accounting judgments
Create a new project plan using microsoft project : Create a new project plan using Microsoft Project for a two-day training session in which people are brought in from different parts of the country.
Analysis of the companys short term : Discuss and interpret the financials in relation to the initiative. Make recommendations on potential discretionary financing needs and write a 350 - 700 word analysis of the company's short term and long term financing needs and determine strate..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Actions-hard disk crash and all data backed up are lost

You come to work on a Monday morning and find that the office computer is not working. The system manager informs everyone that the computer's hard disk crashed and that all datat that wer not backed up are lost. What do you do?

  The board game scrabble

The board game Scrabble works by assigning points to wooden tiles that are marked with printed letters, and are arranged as interlocking words on a Scrabble board.

  Calculate roots of function by newton-raphson approximation

Best known iterative method for calculating roots of a function f (that is, x-values for which f(x) is 0) is Newton-Raphson approximation.

  Write challenges with requirement elicitation

What is meant by "enterprise-wide analytics technology," and how can it play part in understanding business processes? Write down the challenges related with "requirement elicitation"

  Write a program that reads the data in the file and displays

Write a program that reads the data in the file and displays the car number, miles driven, gallons used and the miles per gallon for each car.

  Explain how to structure worksheet including titles

Explain how you will structure the worksheet, including the titles, column headings, and formulas to calculate the time it takes to make each size of cage.

  Explaining communication methods which are beneficial

What additional communication methods not discussed in the reading do you believe are also beneficial? Explain what they are and how you know about them.

  Required value for the move command

Shape_index is a required value for the move command. It is the index of the shape in the shape data arrays that you wish to move. It should range between 0 and MAX_SHAPES - 1. Be sure to validate the index.

  Find optimal production amounts using graphical method

The daily demand for solution A lies between 30 and 150 units, and that for solution B between 40 and 200 units. Find the optimal production amounts of A and B using the Graphical Method.

  Explaining cash-drawer management concept

Explain in scholarly detail cash-drawer management concept and its relationship to departmental Budget vs. Actual control process.

  The basic solutions of the simplex method.

Solve the following problem by inspection, and justify the method of solution in terms of the basic solutions of the simplex method.

  Find a regular expression and an finite automata

For the following pair of regular languages, find a regular expression and an Finite Automata that each define L1 ? L2

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