Question: Anniversary Date Tester Create a java GUI application it takes input of Today's date and Your Special date using Swing JoptionPane as follows: After taking

Anniversary Date Tester

Create a java GUI application it takes input of Today's date and Your Special date using Swing JoptionPane as follows: After taking above inputs, it shows the output as Required Output Case #1: Today's Date: 28 December 2015 Special Date: 14 May 2003 Anniversary: 14 May 2015 Sorry, I missed your anniversary! Required Output Case #2: Today's Date : 28 December 2015 Special Date : 31 December 2008 Anniversary : 31 December 2015 Will you have a party? For this project we need to implement the following class files: a) CalendarDay.java: It contains a class CalendarDay with required constructors and getters/setter methods. We required to throw exception, if input of day is not between 1 to 31 b) CalenderMonth.java: It contains a class CalendarMonth with required constructors and getters/setter methods. Getters must return name of the month and number of days of a month. Throw the errors, if month number is invalid c) CalendarYear.java: It contains a class CalendarYear with required constructors and getter/setter methods. A method to check whether year is leap or not. Another method to get number of days of year number d) CalendarDate.java: It is class with above 03-classes as aggregation. It contains a enum with 03constants (STANDARD- Eg: 3 August 2012, US_FORMAT Eg: Aug 3, 2012 and ISO_8601 2012-08-03). Define required constructors and getters/setters. Override toString() method to return string of date in required format. Define a method twoDigits() to get a string of digits with leading 0 for single digit values. Another method compareTo() to compare two dates and returns 0 or -1 or 1. Finally define a method anniversary() , this returns current year calendar date of your special date e) DateTest.java: A final program with main() and other functions to test all above classes

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