Question: Note: the code must be run in Ready to Program software (I mean could you please guide me on how to write the program so
Note:
-
the code must be run in Ready to Program software (I mean could you please guide me on how to write the program so I can run that in Ready to Program software because that is part of my assignment)
-
No calendar class can be used.(such as Java.util.calendar )
-
The program must contain detailed and appropriate comments
-
No Array and String can be used such as: (tatic final String [] MONTHS = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
static final int [] DAYS = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
static final String [] DOW = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; ) , I cant used the above code in my code.
5. please write the code in a very simple and clear way, I am a beginner and it is a little hard for me to understand.
6. provide a sample of the output
Final Major Assignment *
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.
The header of the method should be
public static void yearCalendar (int year) { }
-
Write a method named monthCalendar ( ) to display a month calendar for any given month of any year after 1900.
The header of the method should be
public static void monthCalendar (String month, int year ) { }
Example output of the method:
January 1900
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
-
Write a method named dayNameFinder( ) to return the day of the week for any given date from year 1900.
The header of the method should be
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.
The header of the method should be
public static void dateFinder (int n) { }
For example, if the value of n is 25, the method should display February 26, 2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
