Question: Duration.java: Emma and her colleagues plan to have lunch outside today. Right now, it is 11:34. Emmas boss wants her back before 13:15 for a

  1. Duration.java:

Emma and her colleagues plan to have lunch outside today. Right now, it is 11:34. Emmas boss wants her back before 13:15 for a very important meeting. In order to help Emma to know if she has enough time, develop a program and tell the time duration from now to the meeting in the format of HH:MM. Your program should support the input of any given pair of start/end time via the keyboard.

Use loop to avoid invalid inputs. Ensure the hour input and the minute input is in the right range [0..23] and [0..59] respectively. When start time is later than end time, ask the user to choose reenter both times; otherwise, quit the execution without giving any wrong information in the display. Please be aware of the correct use of next, nextLine, and nextInt.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!