Student ArrayList Write a Java application that does each of

Student ArrayList

Write a Java application that does each of the following:

For each student

Reads from a file the name and a series of labs for each person (students do not all have the same number of labs)

Calculates the average of the labs

Stores the name and average in an array of class Grades.

Prints the information from the array using a “for loop”

Prints the following information with appropriate documentation:

Class lab average

Name and average of student with highest average

Name and average of student with lowest average

Searches for particular students

Asks the user for a name

If the name is in the array, prints the name and average for that person.

If the name is not in the array, prints a message to the user indicating the name does not exist.

Continues to ask the user for names until the user wants to stop

You must use one, and only one, arrayList for this application.

Solution

Please find the required program along with its output. Please see the comments against each line to understand the step.

--------------------------------------------------------

OUTPUT:

Grades of all students:
Grade{name=\'abc\', average=38.6}
Grade{name=\'xyz\', average=40.0}
Grade{name=\'hij\', average=55.166666666666664}
Grade{name=\'efg\', average=44.0}
Grade{name=\'qwe\', average=35.0}
Class Average : 42.55333333333333
Highest average : 55.166666666666664
Highest average student: hij
Lowest average : 35.0
Lowhest average student: qwe
Enter student name to search:
ris
name does not exist
Do you want to continue(yes/no):
yes
Enter student name to search:
xyz
Grade{name=\'xyz\', average=40.0}
Do you want to continue(yes/no):
no

Student ArrayList Write a Java application that does each of the following: For each student Reads from a file the name and a series of labs for each person (st
Student ArrayList Write a Java application that does each of the following: For each student Reads from a file the name and a series of labs for each person (st

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site