Question: 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

  1. 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 students nickname and 5 exam scores (calculate the average using loop statement), until the specified number of students is reached. Then the program should display the students nickname that got the highest average score and his/her average score, before ending the program. Make sure to implement at least two methods in your program. Good modular/method design and use of appropriate parameters and return values will contribute for bonus marks.

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

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!