Question: Java programming problem, could you please add comments // so that I know why you took the steps you did? Thank you! The running time
Java programming problem, could you please add comments "//" so that I know why you took the steps you did? Thank you!
The running time for a movie is measured in hours and minutes. Assume that a user plans to watch two movies back-to-back. Prompt them for the running time of each movie and compute the total watching time in hours and minutes. Use the % operator to ensure minutes do not exceed 59. Use your program to verify the following : 
Execution 1: Movie #1 Enter the movie 1 hours: 2 Enter the movie 1 minutes: 40 Movie #2 Enter the movie 2 hours: 1 Enter the movie 2 minutes: 20 The total watching time is 4 hours and 0 minutes Execution 1: Movie #1 Enter the movie 1 hours: 1 Enter the movie 1 minutes: 44 Movie #2 Enter the movie 2 hours: 1 Enter the movie 2 minutes: 20 The total watching time is 3 hours and 4 minutes Execution 3: Movie #1 Enter the movie 1 hours: 3 Enter the movie 1 minutes: 50 Movie #2 Enter the movie 2 hours: 1 Enter the movie 2 minutes: 50 The total watching time is 5 hours and 40 minutes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
