Write a program that will determine the best Second year student.
Create a front-end class SecondYears that will determine the best first year student.
The class has the following data members:
-an array of ten student objects named myStudents.
The class has the following methods
-enterStudentValues that prompts and reads the values that the each student has to be set to, and sets it accordingly.
-sortStudents that will sort the Students object in descending sequence of the overall average.
-Display that will display all the students in the array.
when you run it must show these:
Write a main() program that:
-Instantiates a SecondYears object
-Read in values into the SecondYears object students array using its enterStudentValues method.
-Display all the students using the objects display method.
-Sort the students in descending sequence of their overall average.
-Display again to show the best student.
Comments
Leave a comment