Question: Program Purpose - Implement two classes Create a TimeOfDay class that holds the hour, minute, and second of a time of day in private integer
Program Purpose
Implement two classes Create a TimeOfDay class that holds the hour, minute, and second of a time of day in private integer data members. The class will contain a constructor, a print function, and accessor and mutator functions for the private data members. Read the comments in the supplied timeofday.h header file for more detailed requirements. Initial tests for the functionality of the TimeOfDay class have been provided in the attached testtimeofday.cpp source file. If you place all of the attached files in the same directory, you can run the initial tests with command make checktimeofday.
Create a TimeInterval class that has a start TimeOfDay object and an end TimeOfDay object as private data members. The class will include three constructors, a print function, and accessor and mutator functions for the private data members. Read the comments in the supplied timeinterval.h header file for more detailed requirements. Initial tests for the functionality of the TimeInterval class have been provided in the attached testtimeinteral.cpp source file. If you place all of the attached files in the same directory, you can run the initial tests with command make checktimeinterval. You are strongly encouraged to create more rigorous tests. Specifications Add all code for the definition of the TimeOfDay class to the attached timeofday.h header file. Include all of the necessary code for the TimeOfDay class, including the implementation of all of the public member functions, in the attached timeofday.cpp source file. Add all code for the definition of the TimeInterval class to the attached timeinterval.h header file. Include all of the necessary code for the TimeInterval class, including the implementation of all of the public member functions, in the attached timeinterval.cpp source file. You will need only a zip file only a zip file will be accepted containing timeofday.h timeofday.cpp timeinterval.h and timeinterval.cpp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
