Attach File Browse My Computer QUESTION 2 Write a Java program that creates an array of input n (get the input from the user) random integer numbers between 10 and 79 inclusive, and pass the array to a method named countAboveAverage that return integer. In this method, count the array elements that are above or equal to average and return the count. Display the returned count in main method. Finally print the n random numbers, Average, Above or equal to Average count and Below Average count. (use formula: n- countAboveAverage) Here is a sample run: Enter the value of n: 10 Random numbers: 11 20 Average : 36.6 Above or equal to Average : 4 Below Average : 6 31 10 19 79 71 51 33 41 Attach File Browse My Computer

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
v Question Completion Status:
Attach File
Browse My Computer
QUESTION 2
Write a Java program that creates an array of input n (get the input from the user) random integer numbers between 10 and 79
inclusive, and pass the array to a method named countAboveAverage that return integer. In this method, count the array
elements that are above or equal to average and return the count. Display the returned count in main method. Finally
print the n random numbers, Average, Above or equal to Average count and Below Average count. (use formula: n-
countAboveAverage)
Here is a sample run:
Enter the value of n:
10
Random numbers: 11 20
31
10
19 79
71
51 33 41
Average : 36.6
Above or equal to Average : 4
Below Average : 6
Attach File
Browse My Computer
Activate Win
Savo All Answors
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
Transcribed Image Text:v Question Completion Status: Attach File Browse My Computer QUESTION 2 Write a Java program that creates an array of input n (get the input from the user) random integer numbers between 10 and 79 inclusive, and pass the array to a method named countAboveAverage that return integer. In this method, count the array elements that are above or equal to average and return the count. Display the returned count in main method. Finally print the n random numbers, Average, Above or equal to Average count and Below Average count. (use formula: n- countAboveAverage) Here is a sample run: Enter the value of n: 10 Random numbers: 11 20 31 10 19 79 71 51 33 41 Average : 36.6 Above or equal to Average : 4 Below Average : 6 Attach File Browse My Computer Activate Win Savo All Answors Click Save and Submit to save and submit. Click Save All Answers to save all answers.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning