Question: Write a java program to read three integers representing the blast-off time of a rocket expressed in hours, minutes, and seconds in a military time.
Write a java program to read three integers representing the blast-off time of a rocket expressed in hours, minutes, and seconds in a military time. Then it reads in another integer giving the rocket's flight time in seconds. The program calculates the time of day at which the rocket will return to earth. A sample run of the program is given below: Enter the hour of the blast-off time [0..23]: 15.Enter the minute of the blast-off time [0..59]: 47. Enter the second of the blast-off time [0..59]: 32. Enter the rocket's flight time in seconds: 45678. The rocket will return to earth at 4:28:50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
