Question: Can someone please help with creating a java calendar using these steps, thank you so much!! Create a CalendarMonth Class: Define a class called CalendarMonth

Can someone please help with creating a java calendar using these steps, thank you so much!!
Create a CalendarMonth Class:
Define a class called CalendarMonth to represent a calendar month.The class should contain the following attributes:
- A single dimensional array to store the names of the days of the week.
- A multi dimensional array to store the day numbers for the entire calendar month.
-An integer for the number of days in the month.An integer for the starting day of the week (e.g.,0 for Sunday, 1 for Monday, etc.).
Constructor:
Implement a constructor that takes the number of days in the month and the starting day of the week as parameters.
The constructor should initialize the day names array, the multi-dimensional array for day numbers, and populate the array with the correct day numbers.
red to make the day numbers align correctly with the starting day of the weekjust populate the calendar sequentially.
Methods:Implement the following methods:void populateCalendar(): Populates the multi-dimensional array with the day numbers for the month, similar to the populateCalendarArray() method from the previous assignment.void printCalendar(): Prints the calendar for the month, using the day names array as a header and the multi-dimensional array to print the day numbers.boolean isDayValid(int day): Checks if a given day is valid for the current month.void printDay(int day): Prints information about a specific day, including the day of the week.Main Program in the Same File as a separate class:Create a main() method in the same file as the CalendarMonth class, but in a different class. In other words, one .java file, but two classes in the same file, just like the examples from the lecture videos.In your main() method, create an instance of the CalendarMonth class.Prompt the user for the number of days in the month and the starting day of the week.Use the CalendarMonth object to print the full calendar and to interactively check if specific days are valid.Example:When creating a CalendarMonth for a month that starts on a Wednesday and has 30 days, the populateCalendar() method should populate the array with day numbers sequentially.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!