Question: Modify the setTime function so that it will handle values that are outside of the normal clock scope by modulating the parameters to 24, 60

Modify the setTime function so that it will handle values that are outside of the normal clock scope by modulating the parameters to 24, 60 and 60 respectively. For example: setTime(26,34, 90); will set the time to 02:34:30 instead of 00:34:00 Write the new setTime function here: void setTime(int hr, int min, int sec) { }Test the program by adding a line in the main function (as shown above) and print the time out. 2. Add a function: bool isLaterThan (clockType pTime); so that the function will determine the current clockType object is later than the given object (in this case pTime). The function will return true if the current object represents a later time than pTime. Otherwise the function will return a false. a. // write your function here bool isLaterThan (clockType pTime) { } b. // write a test function that will prompt user for two clockType objects and printout which one is a larger time. int main() { }

NEED THIS WRITTEN IN C++ LANGUAGE

Modify the setTime function so that it will handle values that are

1. Modify the setTime function so that it will handle values that are outside of the normal clock scope by modulating the parameters to 24,60 and 60 respectively. For example: setTime (26,34,90); will set the time to 02:34:30 instead of 00:34:00 Write the new setTime function here: void setTime(int hr, int min, int sec) \{ \} Test the program by adding a line in the main function (as shown above) and print the time out. 2. Add a function: bool isLaterThan (clockType pTime); so that the function will determine the current clockType object is later than the given object (in this case pTime). The function will return "true" if the current object represents a later time than pTime. Otherwise the function will return a false. a. // write your function here bool isLaterThan (clockType pTime) \{ \} b. I/ write a test function that will prompt user for two clockType objects and printout which one is a larger time. int main() \{

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!