Lab 2 Time

 

Write an application that prompts for and reads an integer value representing some duration in time in seconds and then prints the equivalent amount of time as a combination of hours, minutes, and seconds. For example, 9999 seconds should print the equivalent duration as:

 

2 hours

46 minutes

39 seconds

 

Be sure to test your solution using a variety of different inputs.