Lab Assignment # 1

 Due Friday, February 13, 2002

The following assignment is to be submitted at the BEGINNING OF CLASS.  You will not be allowed time to work on the assignment during class. Name your project file YourNameLab1 and submit it to the class submissions folder "lab1".  Put both your class files in the same project, name them OldMan and Age.  Please note you may only submit your work once and will not be able to change it once submitted. 

Part A

Task:

Modify class OldMan from the class assignment such that every occurrence of the word “man” is replaced with a name that is input from the keyboard. Modify existing methods to include parameters that are passed to the methods.

Evaluation:

Documentation Standards                  / 4
Use of Parameters                           / 2
Completion of Task                         / 4

Part B

Task:

Write a Java program that will do the following:

* ask the user to input their name and age;

* ask the user to input the current year;

* determine with a method their age in year 2050;

* display their name, their current age and their age in 2050;
   
Note that your output should make sense

  Rubric

Documentation Standards                     / 4

Use of Parameters                                / 4

Construction of Methods                       / 4

Use of Input/Output Methods               / 4

 

Completion of Task                               / 4

               

 

Hosted by www.Geocities.ws

1