Question: Write a program, called problem 5 . c , that asks the user for a number of days ( whole days, not fractional days )
Write a program, called problemc that asks the user for a number of days whole days, not fractional days and calculates the number of years, weeks, and days that corresponds to You can ignore leap years, so assume we always have days in year.
For example, days would correspond to year, weeks, and days, because year days is days.
As another example, days would correspond to years, weeks, and days, because years weeks days is days.
Take the days example above. Think about how you can take advantage of using the appropriate type of division to get a quotient and remainder. For example, if you divide by the quotient is and the remainder is The gives us the number of years. How can we use the to calculate the rest of the values?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
