Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help me with my Java grade 11 Final Major Assignment? I posted my assignment twice in Chegg, but the answers were not what

Can anyone help me with my Java grade 11 Final Major Assignment? I posted my assignment twice in Chegg, but the answers were not what I am supposed to do in my assignment. I am really stuck and don't even know how to start. PLEASE help me. Is there any way that I can talk and get help from an expert on Zoom? because I really don't know how to do that. I joined my Java class two months later and I am really disappointed because I don't have any idea how to even start.

Final Major Assignment

Note: 1. You can't use calendar class, String arrays

2. The program should be run in Ready to Program software

3. make a menu in the main method where the program asks the users to select which of the 4 methods (method a, b, c, or d )they want to run and work on

4. the program must have detailed comments and do not use any private method or class

5. include an output sample

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.

a) 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) { }

b) 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

C) 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

d)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

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago