Lab 4

Preparing for the test:

Use this class, Lab 4 and write the student class. I have put some comments in the source code I have given you and below is the output of the program. From these two items you should be able to write the Student class. The student class will have three instance fields you will need. You will initialize the test scores to 0 in the constructor plus whatever you need to do to the third instance field which will be the student's name.
Output:
  John average = 90.0
  ************************
  Test scores for Mary
  Test one = 78.0
  Test two = 99.0
  Test average = 88.5
  ************************
  Test scores for John
  Test one = 85.0
  Test two = 95.0
  Test average = 90.0
  ************************
  Test scores for Perfect
  Test one = 100.0
  Test two = 100.0
  Test average = 100.0
  The average on all the test = 92.83333333333333

What to turn in:

At the end of lab or when you are finished. Have your TA check where you are on the assignment (make sure he has your OutLab). You should have plenty of time to finish this lab, but if you don't finish the Student class try to work on it later. I will go over the correct answer in Wednesday's lecture. Make sure your TA or consultant see how far you've gotten before you leave the lab room.