Question: Write a program that prompts the user to enter the year and first day of the year, and displays the first day of each month

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

January 1, 2013 is Tuesday

...

December 1, 2013 is Sunday

Step by Step Solution

3.57 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan Prompt the user to enter the year Enter first day of the year Calculate the first day o... 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!