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):

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 8VE
icon
Related questions
Question

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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning