Question: code in c++ 2 | Page Assignment 4 (10 points): Calculating Time Your goal is to ask the user for a number of seconds and

 code in c++ 2 | Page Assignment 4 (10 points): Calculating

code in c++

2 | Page Assignment 4 (10 points): Calculating Time Your goal is to ask the user for a number of seconds and determine how many minutes, hours, and days that is equivalent to. The name of the program should be Assignment4 3 comment lines (description of the program, author, and date) statement. Store this result in a variable with an appropriate name. ( point) minute (1 point) hour Set this variable at 3600 (1 point) day. Set this variable at 86400 (1 point) .Ask the user for a number of seconds using the cin .Create a constant variable for the number of seconds per . Set this variable at 60 . Create a constant variable for the number of seconds per Create a constant variable for the number of seconds per .Create conditionals that check: (6 points) o If the number of seconds is greater than or equal to the number of seconds per minute, the program should display the number of minutes in that many seconds o If the number of seconds is greater than or equal to the number of seconds per hour, the program should display the number of hours in that many seconds. o If the number of seconds is greater than or equal to the number of seconds per day, the program should display the number of days in that many seconds

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!