Question: c++please write the function for this A day has 86,400 seconds (24*60*60). Given a number of seconds in the range of 0 to 1,000,000 seconds,
A day has 86,400 seconds (24*60*60). Given a number of seconds in the range of 0 to 1,000,000 seconds, output the time as days, hours, minutes, and seconds for a 24- hour clock. E.g., 70,000 seconds is 0 days, 19 hours, 26 minutes, and 40 seconds. Your function should output: Time is W days, X hours, Y minutes, and Z seconds. Your function should take the number of seconds as an integer parameter Your function MUST be named howLong
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
