Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago