Professional Documents
Culture Documents
2021 Final Project Instructions
2021 Final Project Instructions
2021 Final Project Instructions
The Gregorian calendar is the internationally accepted civil calendar. In the Gregorian calendar,
the day of January 1st, 1900 is Monday.
Write a Java program using the following methods to implement functions of Gregorian
Calendar since 1900. The program should be able to repeat options from user and exit the
program when user enter “exit”.
• Write a method named yearCalendar( ) to display a year calendar for any year from year
1900. User inputs a year number, and the program will display a 12 month calendar for that
year.
• Write a method named monthCalendar ( ) to display a month calendar for any given month of
any year after 1900.
• Write a method named dayNameFinder( ) to return the day of the week for any given date
from year 1900.
public static String dayNameFinder (String month, int day, int year) { }
For example, if the values of parameters are (“January”, 1, 1900), the return value should be
“Monday”
• Write a method named dateFinder ( ) to display the date from n days after February 1, 2021.
For example, if the value of n is 25, the method should display “ February 26, 2021”
Resources you might need: