Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Pete, Pets has four types of employees Idenspers, who receive a fixed weekly salary Clerks,

Pete, Pets has four types of employees Idenspers, who receive a fixed weekly salary Clerks,

Computer Science

Pete, Pets has four types of employees Idenspers, who receive a fixed weekly salary Clerks,. receive a fixed hourly wage for up to the first 00 hours they work and lime-and-a-half: Le.,"1.5 tirnes their hourly wage, for overtime hours worked Vets who receive $800 plus 53.75 for each vaccine., administer Styllsts, who receive a fixed amount of money per appointment Create a program tat calculates the weekly pay for employees of 'Pete, Pets.,lbe total payroll and print's°. a Weekly Pay Report You do not know Me number of employees in the file in advance 
Each type of employee has its own pay code Managers have payoode 1 Clerks have code Vets have oode Stylists have...4 
Input will come from a sequential file that has a line for each employee. The first Urn intl. line will always he the p.eycode The seoontl antl.irtl item will bethe first end lest name. Theta. item will be the employee ID For pp. of %th lary will be the next item If the pay code is Z hourly salary is .e next item followed by hours worked. If the pay code is 3, the next item will be the number of vaccines administered. Me pay code is 4, the next item will be the payrate per appointment followed by the number of appointments All ,tems in a line of the file are separated by a space You have been provided ye& the following classes Employee, (simple class, no need for cpp file) main tests cpp (tests same as the ones in the lab) testseLopp (Ibis is the one to run on the gl server a. get a valqrind report on) Requirements: 1. Implement /derived classes that inherit from Employee (these are your Data Element classes) You have been given the files for each °Mese. (e)Mene9er (6) Clerk (c) Stylist (d) Vet They will contain vadables appropriate. the type of employee. They inherit from Employee and define the virtual method(s) There should also be getter a. setters, and any other methods that are needed for your design The constructor should call the constructor °Me Employee class The toString method will override the Employee Waring method a. use the Employee loString Mtbin the implementation. Provide a destructor. Use const to represent any constants 
2 Create a Data Manager ClaSS call. Employees You have been pravidetl with the h It willeontain a vector-that holds pointers.. Employee objects that will accommodate pointers. Manager, Clerk, SO. a. Vet Pie.. Add anYoter variables needed.Vour design including numManagers, numClerks, numaylist and nurnVels, which will be incremented when you add an Employee of this tYPe Employees will contain the following functions (a) void etltlEmployea(string). The string pass. in will one line from the inputfile. Use the payee. to determine what is to be extracted from the strip Create the correct type of object and ...the vector. (b) double calculateWeeldRay0 Retums the sum of weekly pay for all objects in the vector (e)airing printileporIO. Mums a string wit the Weekly Pay Report. The employees are sort. by employ. number in the report (The necessary methods a. urerl.ded operators needed forthe sortare provided tor you )The Employee Number and First and La. Fames are printed in a column of with 25. The Weekly Pay is print. in a columnar width 10. Total Payroll will print. as well esti, number. ea. type of employee. Look at the example output to s.the Mails& Ile Weekly Pay Report All pay must . printed with decimal places (tl) liule of - Copy constructor, Destructor, operator, You will need the clone° for the copy constructor a... (e)Dateult constructor Any additional functions you may need tor your design must he private °Wily fun.ons. ...Make sure any files you ne. tor the dedvetl classes are put in the Employees., not the Employees.cpp 
main cop will read from the file a. print out the report Give...flowing input rile 
The following reportwill he printed 
33333 Kane Ben 
You have been pro.. verth two data files employee.. a. employees,. You have been provided v... two testing files tests cpp ar, testsa cpp that you will use to test your program on the gl server ancl run a 
 

Option 1

Low Cost Option
Download this past answer in few clicks

22.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions