Use the space below to write a main method to do the following: 1) Create an array named list of type integer of size 5 2) Ask the user to enter 5 numbers and save them in list 3) Then, use the array list to output the average, and the list of even numbers above the average Sample Input/Output Enter 5 Numbers: 11 3 13 5 12 The Average = 8.8 List of even numbers above Average: 12

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Use the space below to write a main method to do the following:
1) Create an array named list of type integer of size 5
2) Ask the user to enter 5 numbers and save them in list
3) Then, use the array list to output the average, and the list of even numbers above the average
Sample Input/Output
Enter 5 Numbers: 11 3 13 5 12
The Average = 8.8
List of even numbers above Average:
12
Transcribed Image Text:Use the space below to write a main method to do the following: 1) Create an array named list of type integer of size 5 2) Ask the user to enter 5 numbers and save them in list 3) Then, use the array list to output the average, and the list of even numbers above the average Sample Input/Output Enter 5 Numbers: 11 3 13 5 12 The Average = 8.8 List of even numbers above Average: 12
Expert Solution
steps

Step by step

Solved in 4 steps with 2 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