Fifth lab: Calendar: Part 1
Learning Objective(s)
- More comfort with loops
- Start work on a larger project to create a calendar program that tracks appointments, etc.
Overview of the program
This lab should print out a calendar for a specific month.
Specifics
For a given month of a given year, output the calendar. For January of 2022, you should output something like:
S M T W R F S
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
- You are to get from the user the year, month (1-12) and which day that month starts on (0-6).
- You need to handle the leap year appropriate. Learn how decide if a year is a leap year. It is more complex than a multiple of 4!
- The program should be called DispMonth
Submission
- Create an empty zip folder.
- Place your program (.java file) in it
- Place your software development report in it.
- Submit the zip folder on canvas
Optional improvements
Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor.
- Have your program determine what day the month starts on instead of inputting it.