Question: The program is not completed there is some missing lines!!! can you Finish it for me! For this lab. I am giving you a small

For this lab. I am giving you a small program which uses a class that you must create. You will write the definition of the class and the definitions of the class member functions, in accordance with the specifications below. o The details about the class is as follows: C Part TimeEmployee 4 private member variables to hold the first name last name, pav Rate and the hoursWorked o 5 public member functions print - a constant function to print the last name, first name, and wages for an employee calculatePay - a constant function which returns the wages for an employee, based on the pay Rate and hours Worked setName - Function to set the first and last name according to the parameters setRate - Function to set the hourly pay rate for the employee setHours - function to set the number of hours for the emplovee A default constructor which sets the member variables to default values (values of empty strings and the value 0.0 are used for the appropriate variables), . 0 Miscellaneous Files 10 W/create the class definition here 11 Elclass partTimeEmployee 12 private: 13 string Firstname, Lastname; 14 double PayRate, Hoursworked 15 public: 26 part Time Employee(); 17 void print() const; 18 void calculatePay(double, double) const; 19 void setName(string&, string&); 28 void setRate(double&); 21 void setHours(double&); 22 23 24 25 plint main() 26 22 28 29 30 31 32 33 34 35 36 string fName, lName; double pay, hours; partTimeEmployee newEmp; cout > fName >> Name cout > pay: cout > hours: newmp.setName(Name, IName); newmp.setRate(pay); newmp.setHours (hours) 38 39 40 41 42 43 44 W printing the values for that employee newEmp.print(); return; } //the class member function definitions go down here 48 50 51 53 5-6 55 56 partTimeEmployee partTimeployee() { Firstname Lastnane - Hoursworked - 0.8; PayRate - 0.6; 3 void partemployeestpartive ployee.print() const { > void partiemployees calculatePay(double, double) const { 3 void partTimeployee: 1 setiane(string, string&) { void partireteployecto setRate(double&) { 7 void partiemployee!! setHours (doubles) { 60 G3 62 No issues found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
