Question: You are to implement a StudentList data structure/data type that stores players using an internal array of Student in the class. Add Students to the
You are to implement a StudentList data structure/data type that stores players using an internal array of Student in the class. Add Students to the List as they come in from the data file. You will need to add the class Studentlist. The maximum number of students in a list is 25. You must implement the following operations on your Studentlist along with any other utility functions you might need. You may also need to add operations to the class Student to encapsulate i/o operations to the class Operations for Studentlist Default Constructor Add a Student to the List-add items in the order they were found in the file, No sorting is necessary in this version of the program Iterate through the List so that you can get each student out for printing . getClassAverage Clear out the list to make it empty . Test if a list isFull . Get the size of the list New Operations for Student Add a method (read) that lets a student object read its data from an input stream, NOTE THAT THERE IS NO LONGER a -1 at the end of a set of grades!!! You must determine whether you are Example: student1.read(inputfile); of You are to implement a StudentList data structure/data type that stores players using an internal array of Student in the class. Add Students to the List as they come in from the data file. You will need to add the class Studentlist. The maximum number of students in a list is 25. You must implement the following operations on your Studentlist along with any other utility functions you might need. You may also need to add operations to the class Student to encapsulate i/o operations to the class Operations for Studentlist Default Constructor Add a Student to the List-add items in the order they were found in the file, No sorting is necessary in this version of the program Iterate through the List so that you can get each student out for printing . getClassAverage Clear out the list to make it empty . Test if a list isFull . Get the size of the list New Operations for Student Add a method (read) that lets a student object read its data from an input stream, NOTE THAT THERE IS NO LONGER a -1 at the end of a set of grades!!! You must determine whether you are Example: student1.read(inputfile); of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
