Question: Problem 2 [30 marks] Displaying a calendar (filename: Display Calendar.java) Design an algorithm and then write a program that prompts the user to enter a
Problem 2 [30 marks] Displaying a calendar (filename: Display Calendar.java) Design an algorithm and then write a program that prompts the user to enter a year and the first day of the year, and displays the calendar for the year. For example, if the user enters year 2019, and 2 for Tuesday, January 1, 2019, your program should display the calendar for the 12 months in the year, as follows: Enter a year: 2019 Enter the first day of the year: 2 January 2019 Sun Mon Tue Wed Thu Fri Sat 3 13 20 27 14 21 28 15 22 29 16 23 30 17 24 31 18 25 19 26
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
