Question: in c + + / * * * Adds one second * / void addOneSecond ( ) { / * * assume you have working
in c
Adds one second
void addOneSecond
assume you have working getSecond setSeconds and addOneMinute
addOneMinute will take care of the hours if necessary
Feel free to change things around in your program, but for now please make this work with these function signatures.
if getSecond is between and inclusive, add and setSecond
if getSecond is seconds wrap around to and you need to call addOneMinute
test will set minutes to and seconds to then addOneSecond times
TODO: your code here
nothing to return, just call setSecond with the right value and addOneMinute when needed
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
