Question
This is C++ basics, thank you in advance. Ask the user for a number of seconds using the cin statement. Store this result in a
This is C++ basics, thank you in advance.
Ask the user for a number of seconds using the cin statement. Store this result in a variable with an appropriate name. (1 point)
Create a constant variable for the number of seconds per minute. Set this variable at 60.
(1 point)
Create a constant variable for the number of seconds per hour. Set this variable at 3600.
(1 point)
Create a constant variable for the number of seconds per day. Set this variable at 86400.
(1 point)
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started