Question: The algorithm your program should compute is documented below by working with a Month Code, Leap Year Offset (if applicable), Century Code, Year Code and

The algorithm your program should compute is
The algorithm your program should compute is documented below by working with a Month Code, Leap Year Offset (if applicable), Century Code, Year Code and Day Code. After describing the procedure, an example is shown below. Month Code - determine a month code with the following table: Month Eighth Month 3:32:11 Month gth Month glootth January 1 Fabmar 4 March 4 April 0 May 2 June 5 July 0 August 3 feptembe 6 October 1 IIflovembe 4 Eecembe 6 Leap Year Offset - determine if a Leap Year Offset of -1 needs to be added to the Month Code using the following guidelines: if the year entered by the user is a leap year and if the month entered by the user is January or February, add -1 to the month code to adjust for the leap year. (A leap year occurs in years that are evenly divisible by 4. However, years that are evenly divisible by 100 are not leap years with the exception that years evenly divisible by 400 are leap years. In other words, 1996 is a leap year, 2000 is a leap year, 2004 is a leap year. 1900 is not a leap year, 1800 is not a leap, 2001 is not a leap year)

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 Mathematics Questions!