Question: I need this program ASAP C++ language //Header File Code: #ifndef TIMECLOCK H #define TIMECLOCK_H class Timeclock {private: float days; float hours; public: Timeclock(float d
I need this program ASAP
C++ language


//Header File Code: #ifndef TIMECLOCK H #define TIMECLOCK_H class Timeclock {private: float days; float hours; public: Timeclock(float d = 0., float h = 0); float getDays(); void setDays(float h); float getHours(); void setHours(float h); Timeclock operator+(float h); Timeclock operator-(float h); void display();}; #endif Write the implementation filetimeClock.cpp for the class TimeClock. Com pile the file, and save it in the Chapl3 folder of your Student Data Files. Write a C++program named weeklyPay.cpp to test your class TimeClock- Your program should ask the user how m any hours the user worked each day of the week. An object should be created for each day of the week with the number of hours for each day worked and an object for the weekly total. Save your program as weeklyPay.cpp and execute it. The following is a copy of the screen results that might appear after running your program, depending on the data entered. The input entered by the user is shown in bold. This program asks the user for the number of hours worked each day of the week, totals the hours, and shows the days and hours worked. How many hours did you work Monday? 4 How many hours did you work Tuesday? 9 How many hours did you work Wednesday? 3 How many hours did you work Thursday? 12 How many hours did you work Friday? 3 How many hours did you work Saturday? 7 How many hours did you work Sunday? 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
