Question: could you eplain the source code line by line? I am typing the question and uploading the source code image which needs explanation line by
could you eplain the source code line by line? I am typing the question and uploading the source code image which needs explanation line by line.
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


#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
