Answered step by step
Verified Expert Solution
Link Copied!

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

  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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Why do people resist strategic change?

Answered: 1 week ago