Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
- 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started