Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

((USE C++ PROGRAMMING LANGUAGE)) Object Orientated Programming Use Object Oriented Design (OOP), Use Constructors, Parameters, and arguments as needed. Have the user input number of

((USE C++ PROGRAMMING LANGUAGE))

Object Orientated Programming

Use Object Oriented Design (OOP),

Use Constructors, Parameters, and arguments as needed.

Have the user input number of seconds. Convert number of seconds to days, hours, minutes, and remaining seconds up to 7 days. If the number of seconds is greater than 7 days do not convert and print a message user entered seconds greater than 7 days.

Create a main function to control the operation of the program. If the user inputs a second amount for conversion less than or equal to 0 the program should prompt the user again for input.

Implement setter and getter methods as needed.

Only output days if there are enough seconds for 1 day.

Days

Hours

Minutes

Seconds

Only output hours if there are enough seconds for 1 hour.

Hours

Minutes

Seconds

Only output minutes if there are enough seconds for 1 minute.

Minutes

Seconds

Attach the Source Code and Output below.

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

d. How will lack of trust be handled?

Answered: 1 week ago