0% found this document useful (0 votes)
2 views

Grade Program

The document outlines the creation of a program to track student grades, requiring an array for five test scores and their average. It includes a method for user input of student names and scores, and a main method to calculate and display averages. Additionally, it specifies the need to determine and output the highest and lowest averages among multiple students in a class.

Uploaded by

Crvtical
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Grade Program

The document outlines the creation of a program to track student grades, requiring an array for five test scores and their average. It includes a method for user input of student names and scores, and a main method to calculate and display averages. Additionally, it specifies the need to determine and output the highest and lowest averages among multiple students in a class.

Uploaded by

Crvtical
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Grade Program

You will create a program to keep track of a student’s grades in a class.

 Create an array to hold the scores of five tests and the test average for the student.

 In a method named getData, have the user enter the information as follows:

o Enter the student’s name:

o Enter John Smith’s test #1 score:

o Enter John Smith’s test #2 score:


.
.

 In the main method, output the test average of the student as follows:

o John Smith’s average was a 91.4%.

When You’re Finished:

 Ask the user how many students are in the class and create one array to hold all the
scores and averages.

o Then ask for all the students’ scores, calculate each student’s average and
output them.

 Output the students with the highest and lowest averages:

o Bob Jones had the highest average with a 91.4%.

o John Smith had the lowest average with a 80%.

You might also like