✍️ Get Writing Help
WhatsApp

Structure designed

1.Design a function update that accepts the date structure designed in Exercise 12.4 to

increment the date by one day and return the new date. The following rules are applicable:

Σ If the date is the last day in a month, month should be incremented

Σ If it is the last day in December, the year should be incremented

Σ There are 29 days in February of a leap year

2. Modify the input function used in Exercise 10.4 such that it reads a value that represents

the date in the form of a long integer, like 19450815 for the date 15-8-1945 (August 15,

1945) and assigns suitable values to the members day, month, and year.

Use suitable algorithm to convert the long integer 19450815 into year, month and day.

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102