Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program in Java that finds the number of items above the average of all items. The problem is to read 100 numbers, get
Write a program in Java that finds the number of items above the average of all items. The problem is to read 100 numbers, get the average of these numbers, and find the number of the items greater than the average. To be flexible for handling any number of input, we will let the user enter the number of input, rather than fixing it to 100. Sample input: Enter the number of items: 10 Enter the numbers: 3.4 5 6 1 6.5 7.8 3.5 8.5 6.3 9.5 Sample output: Average is 5.75 Number of elements above the average is 6
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