Fifth lab: Calendar: Part 1

27 Dec 2021 - 17:05 | Version 1 |

Learning Objective(s)

  1. More comfort with loops
  2. 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
  1. You are to get from the user the year, month (1-12) and which day that month starts on (0-6).
  2. 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!
  3. The program should be called DispMonth

Submission

  1. Create an empty zip folder.
  2. Place your program (.java file) in it
  3. Place your software development report in it.
  4. 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.
  1. Have your program determine what day the month starts on instead of inputting it.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine