Question: (URGENT) Java- Create a monthly calendar Question 2: Monthly Calendar (50 points) For this question, you will write a program that displays the monthly calendar
Question 2: Monthly Calendar (50 points) For this question, you will write a program that displays the monthly calendar of the month desired by the user. To do that, you will need to implement al the methods listed below. All the code for this question must be placed in a file named MonthlyCalendar.java. 2a. A method to obtain the number of the month Write a method called getMonthNumber that takes a String as input containing the name of the month The method returns the int associated to it (starting from 1 up to 12). If the String does not contain a valid name for a month, then the method should return -1. Note that the method should not be case sensitive. For example, e getMonthNumber ("june") returns 6 e getMonthNumber ("January) returns 1 egetMonthNumber("junes) returns -1 . getMonthNumber ("JuNe") returns 6 egetMonthNumber ("cats") returns -1 2b. A method that computes the day of the week Write a method getDayOf TheWeek that takes three integers as input (representing the day d, month n and year y, respectively) and returns an int representing the day of the week on which that date Page 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
