The goal for Lab06a is to use the provided Student class and create an array of Student objects that are stored in a School object. This program uses a Student class that is provided See the work area. The class is placed in its own separate file and should not be altered. The Lab06avst.java file is also provided for you in the work area. You will not see the Student class here. There is evidence that the Student class is used, as you see in line 17, but the class is separate in its own file, which is better Object Oriented Design. Specifics and Output 10 Student objects need to be constructed and placed in a students array, which is stored in a School object. The actual data used in the Student objects can be seen by the output below. This program requires the completion of the School constructor. It also requires the completion of the addData method. This method does a lot. First you need to create three initializer lists for names, ages and gpas. These arrays are only used to create the students array, which is not an array of three arrays, but a students array of Student objects. Finally, you need to complete the toString method so that it will display the contents of the students array, as it is shown below in the sample output (attached picture):
The goal for Lab06a is to use the provided Student class and create an array of Student objects that are stored in a School object. This program uses a Student class that is provided See the work area. The class is placed in its own separate file and should not be altered.
The Lab06avst.java file is also provided for you in the work area. You will not see the Student class here. There is evidence that the Student class is used, as you see in line 17, but the class is separate in its own file, which is better Object Oriented Design.
Specifics and Output
10 Student objects need to be constructed and placed in a students array, which is stored in a School object.
The actual data used in the Student objects can be seen by the output below.
This program requires the completion of the School constructor.
It also requires the completion of the addData method. This method does a lot. First you need to create three initializer lists for names, ages and gpas. These arrays are only used to create the students array, which is not an array of three arrays, but a students array of Student objects.
Finally, you need to complete the toString method so that it will display the contents of the students array, as it is shown below in the sample output (attached picture):
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images