Question: 4. Write a Java program that prompts the user to enter an integer to represent a number (total) of students. Then repeat an input process

4. Write a Java program that prompts the user to enter an integer to represent a number (total) of students. Then repeat an input process where the user needs to enter a student's nickname and 5 exam scores (calculate the average using loop statement), until the specified number of students is reached. Store all the input data in array. If necessary, you may use separated arrays to hold different data types. Then the program should display the student's nickname that got the highest average score and his/her average score, before ending the program. TESTING: Test your program at least three times using different no. of students, and three variations of data e.g. first student got highest average marks, or student at the middle position got highest average marks, or the last student got highest average marks. (optional challenge: how to handle if two or more students got same highest average marks?)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
