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

  Find minimum associativity needed of level cache

Determine the minimum associativity needed of the level 1 cache for consistent performance independent of both arrays' position in memory?

  Characterize a page fault rate using pure demand paging

Consider system which uses pure demand paging: When a process first start execution, how would you characterize a page fault rate?

  Internet, internet, intranet

Define the terms internet, Internet, intranet and extranet, highlighting the similarities and differences between them.

  Effective-protecting intellectual property in digital media

Which is more likely to be effective in protecting intellectual property in digital media such as CDs and DVDs: tougher copyright laws or new technologies incorporating.

  Resilience systems without disturbing normal businesd

With an increasingly global economy when business is open 24 / 7, how do we test the resilience of our computer systems without disturbing normal business operations?

  Biggest advantages of mathematical model

What would be the biggest advantages of a mathematical model that supports major investment decisions? Discuss in scholarly detail.

  String s of lowercase english letters

Given a string S of lowercase English letters, write a program to find the longest magic string than can be obtained by removing some letters of S. If there are more than one solutions, choose the longest magic string which is lexicographically small..

  Whena router encounters

Whena router encounters an error in an IP header it:  a.returns the packet to the sending router. b. returns the packet to the sending router with an error advisement.

  Access control system

What access control system is most valuable for protecting enterprise systems? Why? What are two specific strengths and two specific drawbacks for your chosen access control system?

  What might affect a spreadsheet developers choice

Excel allows you to display a system date using the date stamp and the NOW function. When might a date stamp be important? Why? What might affect a spreadsheet developer's choice for the date format used to display the date.

  What is a nested inner class

What is a nested inner class? What special privileges does a nested inner class have? Give an example of how you declare a nested inner class.

  Conduct a set of preliminary discussions

Conduct a set of preliminary discussions with Andrews and Jones to discuss the various systems and the company's strategic vision. You also meet with the heads of Marketing, Travel & Tourism, and Technology to gather their initial thoughts for the..

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