Question: sec2Days (n3) Write the function sec2Days () that takes an int n3 as input and returns a string. The function takes the number of seconds

sec2Days (n3) Write the function sec2Days () that takes an int n3 as input and returns a string. The function takes the number of seconds as input and calculate the equivalent amount of time in the form D:HH:MM:SS where D, HH, MM, and SS represent days, hours, minutes and seconds respectively. The function calculates those values separately, and combine them in a single string variable to return. You may assume the input parameter is always an integer Sample Input: ***n3 = 750,000 n3 = 1,234 n3 = 200,000 Expected Output: 8:16:20:00 0:00:20:34 2:07:33:20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
