Question: this is all one code, please please make it correct asap Four doubles are read from input, where the first two doubles are the hours

this is all one code, please please make it correct asap  this is all one code, please please make it correct asap
Four doubles are read from input, where the first two doubles are
the hours worked and hours off of punchcardi and the second two

Four doubles are read from input, where the first two doubles are the hours worked and hours off of punchcardi and the second two doubles are the hours worked and hours off of punchCard2. Define the function to overload the + operator. Ex: If the input is 10.014.02.08.0, then the output is: 10 hours worked, 14 hours off 2 hours worked, 8 hours off Sun: 12 hours worked, 22 hours off Note: The sum of two time cards is: - the sum of the number of hours worked - the sum of the number of hours off. Four doubles are read from input, where the first two doubles are the hours worked and hours off of punchcardi and ithe second two doubles are the hours worked and hours off of punchCard2. Define the function to overioad the + operator. Ex: If the input is 10.014.02.08.0, then the output is: 18 hours worked, 14 hours off 2 hours worked, 8 hours off Sum: 12 hours worked, 22 hours off Note: The sum of two time cards is: - the sum of the number of hours worked - the sum of the number of hours off 22. void punchcardsiprinte) const ( 24 cout ks hoursworked ks "hours worked, " \& hoursoff s " hours off": int main() ( double workinghours1; double vacationtburs1; double workingtours 2 ; double vacationaburs 2 ; cin warkinghours 1 ; cin vacationiloursi; cin >> workinghtours 2 ; cin ss vacationtours2; Punchicard punchCard1 (workingikurs1, vacationhours1); Punchicard punchCard2(workingHours2, vacationkours2); Four doubles are read from input, where the first two doubles are the hours worked and hours off of punchCardi and the second two doubles are the hours worked and hours off of punchCardz. Define the function to overioad the + operator. Ex If the input is 10.014.02.08.0, then the output is: 18 hours worked, 14 hours off 2 hours worked, 8 hours off Sun: 12 hours worked, 22 hours off Note: The sum of two time Cards is: - the sum of the number of hours worked - the sum of the number of hours off 34 cin ? vacationnioursi ; cin s) morkinglours 2 : cin 3y vacationhours2? Punchcand punchCard1(working tours1, vacationthours1): punchcard punchcard2(working burs2, vacationthours2); Punchicard sun - punchcard1 + punchicard2i puncticardi. Print(): cout \&e endi; punchicardz. Print(): cout r endi ; cout es "5ua: "; sun. print (): cout r endi; return os

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!