Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that reads a number of scores into an array and determines how many scores are above or equal to the average. Assume
Write a program that reads a number of scores into an array and determines how many
scores are above or equal to the average. Assume that the maximum number of scores is
and that each score is a double value.
Write a method that returns a double array using user's inputs from the console
window. The method should have the following header. The formal parameter size is
the size of the return array.
public static double inputScores int size
Your input should be through the console.
Write a method that return the number of scores above or equal to the average.
public static int highScoreCount double scores
Your program should contain the "main" method that invokes the inputScores
and highScoreCount methods. The number of scores above or equal to the
average should be displayed in the console window as the output of this program.
Grading: This lab is worth points.
Submission:
When you have finished your assignment, you will upload submit it to Gradescope. I
remind you that if you do not submit the assignment before the due date, you will not be
able to submit it
Complete the assignment and name it Lab
Return to the Gradescope to submit the java file for this assignment.
Browse for the Labjava file that you have on your computer and select them so
that they upload to the assignment area.
Click "Upload". For this assignment, please name your class file as "Lab
Finally, your code should look exactly like the output mentioned below and should be
able to run test cases.
Please enter scores in the array you want to make:
Please enter a score
Please enter a score
Please enter a score
Please enter a score
Please enter a score
The number of scores above average is:
EXACT OUTPUT PLEASE
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