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):
![Lab06 Output
----jGRASP exec: java Lab06av100
Tom 21 1.685
Ann 34 3.875
Bob 18 2.5
Jan 45 4.0
Joe 27 2.975
Sue 19 3.225
Jay 30 3.65
Meg 38 2.0
Art 40 3.999
Deb 35 2.125](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0953838b-be41-48e9-a41f-03fc35b17829%2Fe68ac58a-fd07-40c2-9193-f95fe828d22e%2F23fwj3v_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)