Question: Develop a program and ask the user to enter a number of seconds. There are 60 seconds in a minute. If the the user enters

Develop a program and ask the user to enter a number of seconds.

There are 60 seconds in a minute. If the the user enters the numbers of seconds and it is greater than or equal to 60, the program will show the number of minutes in that many seconds.

There is 3,600 seconds in an hour. If the user enters the numbers of seconds and it is greater than or equal to 3,600, the program will show the number of hours in that many seconds.

There are 86,400 seconds in a day. If the user enters the numbers of seconds and it is greater than or equal to 86,400, the program will show the number of days in that many seconds.

You must use constants for all the values. (C++)

Expected Output:

Develop a program and ask the user to enter a number of

X C:\Windows\system32\cmd.exe Enter a number of seconds : 222222 There are 3703.7 minutes in 222222 seconds. There are 61.7283 hours in 222222 seconds. There are 2.57201 days in 222222 seconds. Press any key to continue

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!