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

  Compute the overall npv if tangible benefits are given

Tangible benefits of $190,000 per year. If the cost of capital is 12 percent, compute the overall NPV? Overall ROI? Break-even.

  Ladybug extends class critter

Ladybug extends class Critter. It changes to the color of another critter (and only critters) that it approaches. When encountering a flower, it will change all of the flower colors to the ladybug's current colo

  Give time line which identify specific steps of installation

Give a time line, which identifies specific steps (including training) and related resources required to implement the recommended system.

  Implementing strong password policy

How do you implement strong password policy given dilema of forgotten passwords? How would you address these issues?

  Design and test using logic works a dual-output function

Design and test using Logic Works a dual-output function to implement a full-adder in Sum-of-Products form. Show the transistor count on your schematic. For bonus points optimize the circuit to minimize transistor count.

  Write bash shell script filestatic to examine number files

Write bash shell script filestatic. Script should examine the number files in directories given as arguments (parameters) to this script.

  Discuss the different reasons for terminating a process

discuss the different reasons for terminating a process and the commands used for this purpose.

  Swot analysis results of the new ict service

Compare the SWOT Analysis results of the current ICT service with the SWOT Analysis results of the new ICT service.

  Type of information of microsoft useful inprofessional life

What kind of information on the site do you find to be valuable to you? What kind of information about Microsoft Word do you find to be useful in your personal or professional life? Explain.

  Describing targeted audience go for particular site

Recognize a particular website that you frequently go to and explain targeted audience that goes to that particular site. Do not say "everyone" since all sites always have general target audience.

  Elements corresponding to the inorder sequence

Suppose that you are given two sequences of elements corresponding to the inorder sequence and the preorder sequence. Prove that it is possible to reconstruct a unique binary tree .

  Convert the decimal integer

Convert the decimal integer -24 to 16 bit and 32 bit two's complement hexadecimal representation. show your calculations.

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