Design a payroll class with the given fields

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

Question: Design a Payroll class with the following fields:

• name: a String containing the employee's name

• idNumber: an int representing the employee's ID number

• rate: a double containing the employee's hourly pay rate

• hours: an int representing the number of hours this employee has worked The class should also have the following methods:

• Constructor: takes the employee's name and ID number as arguments

• Accessors: allow access to all of the fields of the Payroll class

• Mutators: let the user assign values to the fields of the Payroll class

• grossPay: returns the employee's gross pay, which is calculated as the number of hours worked times the hourly pay rate.

Write another program that demonstrates the class by creating a Payroll object, then asking the user to enter the data for an employee in the order: name, ID number, rate, hours. The program should then print out a statement in the following format (for example, if you had an employee named Chris Jacobsen with ID number 11111, who works for 5 hours at $10/hr): Chris Jacobsen, employee number 11111, made $50.00 in gross pay. Using text forming so that the gross pay is rounded to two decimal places.

Reference no: EM131551640

Questions Cloud

How many days worth of inventory will you carry : Inventory requires you to use the skills gained in Module/Week 7 to create an inventory management plan for a sport or entertainment organization.
How bonds may be used to finance facility construction : Bonds requires you to use the skills gained in Module/Week 6 to explain how bonds may be used to finance facility construction for a sport or entertainment.
List possible resource that may be used to generate revenue : Please select a professional sports team, college athletic department, church, summer camp, or a Christian-based sport or recreation-related organization.
Wap that uses fuction and calculates the pay structure : Write a program that uses fuction and calculates the pay structure of Mr. Hortons at spencer Enginering Buliding UWo. The program should prompt the user.
Design a payroll class with the given fields : Write another program that demonstrates the class by creating a Payroll object, then asking the user to enter the data for an employee in the order.
Write a windows batch script or powershell script : Write a Windows Batch Script or Powershell Script (must specify which it is) to be added under the User Configuration>Scripts(LogOn/LogOff)>Logon of the Local.
What is a deferred tax liability : Is it possible for a company to show positive cash flows but be in grave trouble? Q: How is it possible for a company to show positive net income.
What is goodwill : Why do capital expenditures increase assets (PP&E), while other cash outflows, like paying salary, taxes, etc., do not create any asset.
How much they will end up paying back in total : The Full Keg, a music venue in the city of Chicago has recently taken out a $100,000, 15 year amortized loan to with a 3.5% annual interest rate in order make.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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