18 Jun SUBMIT A ZIP FILE OF THE PROJECT FOLD
SUBMIT A ZIP FILE OF THE PROJECT FOLDER INCLUDING A SAMPLE INPUT FILE.
September 20, 2018Posted by: kajo No Comments
Class design:
Design a PayRoll class that has data members for an employee’s first and last name, hourly pay rate, number of hours worked. The default constructor will set the first and last name to empty string, and hours worked and pay rate to zero. The class must have mutator functions to set each of the data members of the class and accessors to access them. The class should also have the following member functions:
displayPayroll function that displays all data members of the a PayRoll instance on one line separated by blanks
readPayRoll function that reads data members of a PayRoll instance from an input stream associated with a text file (assume all data members are on one line separated by commas)
getGross function that will return a double calculated by multiplying the hours worked by the pay rate.
Driver program:
Write a program with an array of seven PayRoll objects The program should read the name (first and last), pay rate and the number of hours for each employee and display each employee information followed by the employee’s gross pay, all on one line separated by blanks. Set the precision for printing the doubles to two decimal places.
Input Validation:
Do not accept values greater than 60 for the number of hours worked, simply have the set function set number of hours worked to 60, the maximum allowed.
Do not accept negative values for pay rate and hours worked (set them to 0)
Be sure to include an employee claiming to work more than 60 hours per week, negative pay rate, and negative hours worked.
Deliverables:
Submit a zip file of the project folder including a sample input file.
grades focus on:
Class design: 60%
class specification, class definition, input validation
Driver program: 30 %
Documentation & programming style 10%
make a brief description of program and each function, include any problem specifications not met
Prog. Style:
indentation, self-documenting identifiers, etc
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
