Question: Built in C++ using just if conditional: It is required to make a program that reads three integers that represent the hours, the minutes and

Built in C++ using just if conditional: It is required to make a program that reads three integers that represent the hours, the minutes and the seconds of a certain time. For example 10:58:50. If the entered data does not form a valid time, ie hours (0-23), minutes (0-59) and seconds (0-59), the program should display an error message on the screen. If the data is correct, the program should calculate: a) What time it would be after one hour. Ex: 15:23:45 16:23:45 b) What time it would be after one minute. Ex: 15:23:45 15:24:45 c) The time that would be after one second. Ex: 15:23:45 15:23:46 The hours thus calculated must also be valid. For example, adding a second to 15:59:59 15:59:60 is incorrect. The correct would be 16:0:0. To solve this exercise you should NOT use functions or formats, neither of dates nor of hours
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
