Question: 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

 Write a program that prints out a month in a calendarbased on input by the user. The system will ask the user

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:

----1GRASP 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 Thu Fri Sat 3 10 17 2 4 2 16 23 18 25 15 12 19 26 13 20 27 14 21 28 29 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!