next up previous
Next: Multadd Up: Homework 3: Void Methods Previous: Homework 3: Void Methods

More dates

1.
This assignment requires you to start with a working solution to Homework 2. If you are happy with your solution, make a copy of it on the desktop, and open it. If not, you can get my solution from the class web page:
http://rocky.colby.edu/cs151/solutions/hw2/Date.java
If you use my solution, you will have to create a CodeWarrior project and paste my code into it.

2.
Add a new method called printAmerican that takes the day, date, month and year as parameters and that prints them in the American format we used last time.

3.
Test your method by invoking it from main and passing appropriate arguments. The output should be indistinguishable from what you saw last week (except that the date might be different):
American format:
Wednesday, September 29, 1999
4.
Once you have debugged printAmerican, write another method called printEuropean that prints the date in European format.



Allen B. Downey
1999-09-21