Question: : Write a C++ program which takes 2 time from the user. You are asked to make check on given time that hours not more
: Write a C++ program which takes 2 time from the user. You are asked to make check on given time that hours not more than 12 also not less than 0 and the minutes/seconds are not more than 60 and less than 0, after input these time you are asked to convert these time into seconds. Moreover, after calculating seconds, add number 652 into these seconds and then find which time is greater. Your output should be as follows
Enter hours of time 1
Enter minutes of time 1
Enter Seconds of time 1
Enter hours of time 2
Enter Minutes of time 2
Enter Seconds of time 2
The total seconds of time 1 are:
The total seconds of time 2 are:
The Greater time is :
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
