Question: Write a Function that outputs the time since your last medical checkup in years, months, weeks and days. It takes as input, the number of

 Write a Function that outputs the time since your last medical

Write a Function that outputs the time since your last medical checkup in years, months, weeks and days. It takes as input, the number of days since your last medical checkup and displays as output the time that has passed in the format stated above. To make this easier, make certain assumptions. 1 year contains 360 days, Every month contains 30 days Example, For input 475, it should output It has been 1 year(s), 3 months), 3 week(s), and 4 day(s) since your last medical checkup. For input 740, it should output It has been 2 year(s), 0 month(s), 2 week(s), and 6 days(s) since your last medical checkup

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!