Date Validator

This part of the assignment requires you to write a program that will test whether a combination of a given day, month and year is a real date.

Core:

For the core version you can assume that:

You should complete the validateDateCore method.

You will need to ask the user to provide:

Therefore the date made up from:

is valid, but the date made up from:

is not valid.

Note: Make sure to test your program both on dates which should be valid and those which should not.

Download the project zip file and import it into Eclipse to start working.

Completion:

For the completion, you should improve your program in several ways.

Month Days
January 31
February 28
March 31
April 30
May 31
June 30
July 31
August 31
September 30
October 31
November 30
December 31

To do this complete the dateValidatorCompletion method.

Hint: You can find out the remainder after a division using %. So 5 % 4 = 1 (5 / 4 has remainder 1), while 20 % 5 = 0 (20 / 5 has remainder 0, i.e. it can be evenly divided by 5).

Challenge:

For the challenge, your program should be extended to deal with the transition from the Julian to Gregorian calendar. The program should look at the date, determine whether this should be a Julian or Gregorian date, and test it appropriately. You will need to find the rules of the Julian calendar yourselves.