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

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!