Question: Write a JAVA program that reads students names followed by their test scores. The program should output each students name followed by the test scores

Write a JAVA program that reads students names followed by their test scores. The program should output each students name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score.

Student data should be stored in an instance of class variable of type studentClass, which has four components: StudentFName, studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 elements of type studentClass.

Your program must contain at least the following methods:

1. A method to read the students data into the array 2. A method to assign the relevant grade to each student 3. A method to find the highest test score 4. A method to print the names of the students having the highest test score. 5. Your program must output each students name in this form: last name followed by a comma, followed by a space, followed by the first name, the name must be left justified; you should output each students name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score as follow:

Write a JAVA program that reads students names followed by their test 6. Other than declaring variables and opening the input and output files, the function main() should only be a collection of function calls. 7. Comment your code and use meaningful or mnemonic variable names. 8. You must use the Data.txt file provided; failure to use this file and not adhere to the requirements will severely affect your grade.

"C ents and Setti Administrato Student Nane Test Score Grade Donald, Duckey 85 Goof y, Goof 89 Balto Brave 93 Snitn Snow 93 Wonderful, Alice 89 Akthar. Sanina 85 95 Green Sinba Egger, Donald 98 Deer, Brown 86 Jackson Johny 95 Gupta, Greg Happy, Samuel 80 Arora Danny 88 70 June, Sleepy Cheng Any 83 Malik. Shelly 95 Tomek, Chelsea 95 95 Clodfelter, Angela Nields Allison 95 Lance 88 Nornan Highest Test Score 95 tudents having the highest test score Green Simba Jackson Johny Malik Shelly Tonek, Chelsea Clodfelter Angela Nields Allison Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!