You are to write a program that uses the Time class I discussed in class.
You MAY NOT make any changes to the class - use it
as is.
Use the class whenever possible.
The goals of this assignment are:
You entered the parking lot at 3:15PM but if you are not in America you might call it 15:15.2. Create another Time object, meetingtime. Ask the user to enter a time in the format ##:##. (Using the 24 hour clock format.) Unfortunately you can not read it directly into meetingtime. (Try and see.) You can read it as an integer, a character, and another integer. Try to set meetingtime to this time. If it is not a valid time print a message that says you have entered an invalid time and set the meetingtime to 2:00 pm. The Set functions figure out if a time is valid - there is no reason for you to repeat their work! Use the boolean return value to guide your code. Whether valid or not, display the time of the meeting. The computer's format for printing the time might be ugly, but use it.
Please enter the time of the meeting: 18:25
The meeting will be at 18:25.
(bad input)
Please enter the time of the meeting: 28:253. Create another Time object, elapsed.
That is not a valid time. The meeting will be at 14:0.
You entered 4:20 before the meeting..If intime is later than meetingtime, say you will be late and use elapsed to tell how late you will be.
You will be late to the meeting by 2:14.Sample output 1:
You entered the parking lot at 3:15PM but if you are not in America you might call it 15:15.Sample output 2:
Please enter the time of the meeting: 18:25
The meeting will be at 18:25.
You entered 3:10 before the meeting
You entered the parking lot at 3:15PM but if you are not in America you might call it 15:15.Your program should be designed to handle different times, not just the examples used above.
Please enter the time of the meeting: 34:67
That is not a valid time. The meeting will be at 14:00.
You will be late to the meeting by 1:15.