Question
could you eplain the source code line by line? I am typing the question and the uploading the source code image. (USE C++ PROGRAMMING LANGUAGE)
could you eplain the source code line by line? I am typing the question and the uploading the source code image.
(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.
#includeStep 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