Question: Write a program that prompts the user to enter the year and first day of the year and displays the calendar table for the year

Write a program that prompts the user to enter the year and first day of the year and displays the calendar table for the year on the console. For example, if the user entered the year 2013, and 2 for Tuesday, January 1, 2013, your program should display the calendar for each month in the year, as follows:

January 2013 Wed Sun Mon Tue Thu Fri Sat 2 4 12

10 11 19 13 14 15 16 17 18 22 20 21

January 2013 Wed Sun Mon Tue Thu Fri Sat 2 4 12 10 11 19 13 14 15 16 17 18 22 20 21 23 24 25 26 27 29 28 30 31 3. December 2013 Sun Mon Tue Wed Thu Fri Sat 1. 2 4 5 6. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3. 9,

Step by Step Solution

3.55 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan Create a class called CalenderDemo Read an integer day of the year Read on inte... View full answer

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 Java Programming Questions!