Question: C++ Programming Your time machine is capable of going forward in time up to 24 hours. The machine is configured to jump ahead in minutes.
C++ Programming


Your time machine is capable of going forward in time up to 24 hours. The machine is configured to jump ahead in minutes. To enter the proper number of minutes into your machine, you would like a program that can take a start time and an end time and calculate the difference in minutes between the start and end times. The end time will always be within 24 hours of the start time. Use military notation for both the start and end times (e.g. 0000 for midnight and 2359 to represent one minute before midnight). Write a function that takes as input a start time and an end time, represented as an int using military notation. The function should return the difference in minutes as an integer. Write a main program to test your function Hint: Be careful of time intervals that start before midnight and end the following day. If input is 0 and 2359 Enter start time: Enter end time: The time difference between 0 and 2359 is 1439 minutes. If input is 2359 and 1 Enter start time: Enter end time: The time difference between 2359 and 1 is 2 minutes. If input is 2010 and 1000 Enter start time 2010 Enter end time 1000 The time difference between 2010 and 1000 is 830 minutes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
