The goal for Lab07 is to use the provided Student class and create an array of Student objects that is stored in a School object. This program uses a Student class that is provided(picture attached!). The class is placed in its own separate file and should not be altered. This project started with Lab06a and uses the same Student class. Part one of Lab07 is similar to the Lab06b. The difference is that Lab06b used static 1D arrays and Lab07 uses dynamic ArrayList arrays. The output is the same. OUTPUT 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 Ann 34 3.875 Art 40 3.999 Bob 18 2.5 Deb 35 2.125 Jan 45 4.0 Jay 30 3.65 Joe 27 2.975 Meg 38 2.0 Sue 19 3.225 Tom 21 1.685 Bob 18 2.5 Sue 19 3.225 Tom 21 1.685 Joe 27 2.975 Jay 30 3.65 Ann 34 3.875 Deb 35 2.125 Meg 38 2.0 Art 40 3.999 Jan 45 4.0 Tom 21 1.685 Meg 38 2.0 Deb 35 2.125 Bob 18 2.5 Joe 27 2.975 Sue 19 3.225 Jay 30 3.65 Ann 34 3.875 Art 40 3.999 Jan 45 4.0 In part two, adds the linearSearch and the binarySearch methods. Each search method is tested with an existing search record and one that does not exist. Please create a bubble sort, selection sort, and insertion sort for sorting by names, gpa, and age respectively. Student class and Main class are attached as photos
The goal for Lab07 is to use the provided Student class and create an array of Student objects that is stored in a School object. This program uses a Student class that is provided(picture attached!). The class is placed in its own separate file and should not be altered. This project started with Lab06a and uses the same Student class.
Part one of Lab07 is similar to the Lab06b. The difference is that Lab06b used static 1D arrays and Lab07 uses dynamic ArrayList arrays. The output is the same.
OUTPUT
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
Ann 34 3.875
Art 40 3.999
Bob 18 2.5
Deb 35 2.125
Jan 45 4.0
Jay 30 3.65
Joe 27 2.975
Meg 38 2.0
Sue 19 3.225
Tom 21 1.685
Bob 18 2.5
Sue 19 3.225
Tom 21 1.685
Joe 27 2.975
Jay 30 3.65
Ann 34 3.875
Deb 35 2.125
Meg 38 2.0
Art 40 3.999
Jan 45 4.0
Tom 21 1.685
Meg 38 2.0
Deb 35 2.125
Bob 18 2.5
Joe 27 2.975
Sue 19 3.225
Jay 30 3.65
Ann 34 3.875
Art 40 3.999
Jan 45 4.0
In part two, adds the linearSearch and the binarySearch methods. Each search method is tested with an existing search record and one that does not exist.
Please create a bubble sort, selection sort, and insertion sort for sorting by names, gpa, and age respectively.
Student class and Main class are attached as photos
Step by step
Solved in 4 steps with 5 images