Assignment 1

Write a program that inputs an integer (in hours). Corresponding to the input integer, the program should output the smallest number of years, months, days, and hours. The order of conversion is based on year, month, day, and then hour. Assumes that all months have 30 days and all years have 365 days.  (Note that under this rule a year is not equal to twelve months.) As an example,

Enter a number of hours: 1234

The input corresponds to

0 year(s)

1 month(s)

21 day(s)

10 hour(s)

Enter a number of hours: 1234

The input corresponds to

0 year(s)

0 month(s)

51 day(s)

10 hour(s)