CSci 101: Introduction to Programming

Lab 4 form

Oct 2001
Carlson Hall, room 120

Name: ____________________________

Print out this form for Lab 4 and fill in the blanks.

For part 4. 1. What is happening to the local variable times?




2. Why is the value of this times not the same as the value of the times in PetDemo.java?





3. What is the value of the parameter n?


4. Why does it have that value? Is it related to the value of the variable times in the file PetDemo.java? How?






For part 5.

Why doesn't it compile?




For part 6. After you run and test it, hand in your source code for Pet.java and for PetDemo.java, a run of the program, and this form, completed. Sign attendance sheet. There is nothing to turn in today, but sign the attendance sheet for credit for this lab.