Define two Java classes, Classroom1 and Classroom2, that represent the students in a classroom. Classroom1 should provide as data fields four parallel arrays to contain the following student...



Define two Java classes, Classroom1 and Classroom2, that represent the students in a classroom. Classroom1 should provide as data fields four parallel arrays to contain the following student information: first name (String), last name (String), age (int), and grade point average, or GPA (double). Define a method getClassList that returns as a string a list of students in a particular object of this class. Classroom2 should provide, as one data field, an array of type Student, where the class Student contains the same information for a student as described for the previous parallel arrays. Classroom2 should also define a method getClassList. Each class should be able to resize the classroom if necessary.


Demonstrate each class. Compare the implementations of Classroom1 and Classroom2, and discuss their pros and cons.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here