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
Program plan Prompt the user to enter the year Enter first day of the year Calculate the first day o... View full answer
Get step-by-step solutions from verified subject matter experts
