Answered step by step
Verified Expert Solution
Link Copied!

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
100 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 100 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 Lab7.
Return to the Gradescope to submit the .java file for this assignment.
Browse for the Lab7.java 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 "Lab7"
Finally, your code should look exactly like the output mentioned below and should be
able to run test cases.
Please enter 5 scores in the array you want to make:
Please enter a score
78
Please enter a score
54
Please enter a score
34
Please enter a score
87
Please enter a score
34
The number of scores above average is: 2
--EXACT OUTPUT PLEASE
image text in transcribed

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

What was the significance of the industrial revolution?

Answered: 1 week ago

Question

consider how quantitative data can contribute to your research;

Answered: 1 week ago

Question

draw appropriate conclusions based on your data.

Answered: 1 week ago

Question

make sense of basic terminology used in quantitative data analysis;

Answered: 1 week ago