Internal Code : AJ_AH_CHAB_GI
Programming Fundamentals Assignment Writing Help
TASK
Day is an enumerated data type which contains the days of the week, i.e., Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
MyCalendar is the constructor of the class MyCalendar.
The getDayOfWeek method will return the day of the week for the given date.
The getWeekOfMonth method will return the week of the month for the given date.
PrintDateInfo methods will print the information of the given date. The date is printed as dd/mm/yy and the ordinal week of the month in which the date is located.
For example, for the date of 19 October 2018 it should print as 19/10/2018 is a Friday and located in the third week of October 2018
Print calendars method will print a calendar as follows. Refer to the Testing section for the required output format.
For CSIT/DPIT111 students: it prints the calendar of the given month.
For CSIT811 students: it prints the calendar of the given year.
If the input date is not a valid date, the program will ask user to input another valid date. This process will be repeated until a valid date is entered by the user. The valid input date will be used to create an instance of the class MyCalendar. The main method will also invoke the printDateInfo and print calendar methods of a MyCalendar object respectively.