Homework 1
Getting Acquainted with Java

Due: Tuesday, March 24 at 5pm

Outcomes

After successfully completing this assignment, you will be able to...

Before Starting

Read Chapters 2, 4, 5, and 6 in Horstmann.

The Assignment

Write a Java program that displays a one-year calendar. Prompt the user for the year and the day of the week on which January 1 falls. The day that January 1 falls on should be coded as: The calendar should be formatted as shown in the sample execution. Note that numbers are right-justified under the names of the days, and that two spaces separate the names of the days.

Assumptions, Restrictions, and Hints