Question: 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
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.
Step by Step Solution
There are 3 Steps involved in it
here is the code Python class TimeConverter def initself seconds selfseconds seconds selfdays 0 selfhours 0 selfminutes 0 selfremainingseconds 0 def setsecondsself seconds selfseconds seconds def gets... View full answer
Get step-by-step solutions from verified subject matter experts
