Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 secondsStep 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