Question: In this task you are going to create a program that prints a nice calendar overview of a month and year specified by the user.

In this task you are going to create a program that prints a nice calendar overview of a month and year specified by the user. The program should be called PrintCalendar.java and it should begin with asking the user for a year and a month. The program will then print an overview of the month with days and the number for each day (see below.)

Important in this course is that you need to create a suitable number of methods in your program. You will not pass if you do everything in main. With suitable, we expect you to do five to ten different methods, each well defined and only doing one thing.

You do not need to validate user input too much, you need, however, to be able to calculate for example leap year and so on. You do not need to handle years before 1800. You should not use the built in Java class for calendar. Also, the week starts on Mondays

Enter a year after 1800: 1975 Enter a month (1-12): 8 August 1975 ----------------------------- Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Enter a year after 1800: 2020 Enter a month (1-12): 11 November 2020 ----------------------------- Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 

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!