An array is considered to be normalized if its (first Element + last Element) /2 is greater than the average of the whole array. Write a program that asks the user to enter an array size then asks him/her to fill the array with integers. The program will then check if the array is normalized or not. Fun: runt Enter an array size: 5 Enter an array of 5 numbers: 10 45 14 20 Enter an array of 10 numbere: 48 15 10 5 13 52 45 8 5 Array is normalized Enter an array sizet 10 Array is not normalized

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

java program

An array is considered to be normalized if its (first Element + last Element) /2 is
greater than the average of the whole array.
Write a program that asks the user to enter an array size then asks him/her to fill the
array with integers. The program will then check if the array is normalized or not.
run:
run:
Enter an array size: 5
Enter an array of 5 numbers: 10 4 5 14 20 Enter an array of 10 numbera: 4 8 15 10 5 13 52 45 8 5
Array is normalized
Enter an array size: 10
Array is not normalized
Transcribed Image Text:An array is considered to be normalized if its (first Element + last Element) /2 is greater than the average of the whole array. Write a program that asks the user to enter an array size then asks him/her to fill the array with integers. The program will then check if the array is normalized or not. run: run: Enter an array size: 5 Enter an array of 5 numbers: 10 4 5 14 20 Enter an array of 10 numbera: 4 8 15 10 5 13 52 45 8 5 Array is normalized Enter an array size: 10 Array is not normalized
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to computer system
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
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,