Question: In Java Write a program that prints out a month in a calendar based on input by the user. The system will ask the user

 In Java Write a program that prints out a month in

In Java Write a program that prints out a month in a calendar based on input by the user. The system will ask the user for the month, the day that the month starts (e.g., Sunday, Monday, Tuesday, etc). and how many days in the month (e.g., 29, 30, 31). You can assume that the user enters the correct day that the month starts on and the correct number of days. You will then print out the calendar with the first day of the month starting on the inputted day, and then all the corresponding days and dates for the month. You will use a 2-d array to store the day (1, 2, 3, 4, etc.) and then print out the array. You can do this program in the main method. See below for some sample output: jGRASP exec: java Lab5_Calendar Enter the month February What day is the first of the month: Wednesday How many days in this month: 29 February Sun Mon Tue Wed Th Fri Sat 12 19 26 8 15 16 23 10 17 24 13 20 27 21 28 18 25 29 jGRASP: operation complete. jGRASP exec: java Lab5_Calendar Enter the month July What day is the first of the month: Saturday How many days in this month: 31 July Sun Mon Tue Wed Thu Fri Sat 12 19 26 13 20 27 14 21 28 10 15 16 23 30 18 25 29 24 31 jGRASP: operation complete

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 Databases Questions!