Description:
As a first year student you are expected to spend countless hours in the computer lab studying and working on your assignments. As such you decide to write a computer program that will help you keep track of all the hours you spend on school.
For this assignment, you are expected to write a program that prompts the user to enter the start and end time of each study period you have per day. (There can be more than one per day)
Requirements:
- Prompt the user to enter a start and end time using a 24 hour clock.
- After each prompt ask the user if they want to enter another study period
- When done, display the total study time spent
Stipulations:
- All times must be entered in hh:mm format, using a 24-hour clock,
so that the hours are 0-23 and the minutes are 0-59. If a time does not
conform to this format, the program will print an error message and terminate.
- All ending times must be later than their starting times -- for example,
it doesn't make sense to say that a study period lasted from 2:30 to 1:45.
(We're discounting the possibility of late-night study periods that extend
over midnight.) If an ending time is equal to or less than its corresponding
starting time, the program will print an error message and terminate.
Concepts: