Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Final Major Assignment * The Gregorian calendar is the internationally accepted civil calendar. In the Gregorian calendar, the day of January 1st, 1900 is Monday.

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.

  1. 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) { }

  1. 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

  1. 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

  1. 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

Note:

the code must be run in Ready to Program (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), and No calendar class can be used.(such as Java.util.calendar )

please help me with this assignment, I have no idea how to even start.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago