Question: in c + + Task Instructions: You are to implement a function named addOneHour ( ) that adds one hour to the current hour. The
in cTask Instructions:
You are to implement a function named addOneHour that adds one hour to the current hour.
The function should:
Assume you have a working getHour and setHourh
If getHour is between and inclusive add to the hour and call setHour with the new value.
If getHour is the next value for hour is so call setHour with the value
Return nothing, just call setHour with the appropriate value.
The test will check the values of hours from to returned by getHour
Feel free to change things around in your code, but first please get it working here with these function signatures.
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
