The program must be in JAVA language Main will contain a Scanner and a declaration of an integer array (but will not allocate the space for it), and some print statements. The rest of main is method calls. read_list: a method to ask the user for an array size to use, allocate the proper memory for the array, prompt the user to enter the data, one element at a time, and return the completed array to the caller. print_list will print a comma separated list of the array elements on one line. avg_list will calculate the average value of all of the elements in the array. print_larger will print those elements of the array which are greater than the average of all of the elements. add_num will ask the user for an integer value between 5 and 10 (including 5 and 10), add that value to each element of the array. The array contents will then be printed again, with their new values, list_sum will add all of the elements of the array together to get a total value of them.
The program must be in JAVA language Main will contain a Scanner and a declaration of an integer array (but will not allocate the space for it), and some print statements. The rest of main is method calls. read_list: a method to ask the user for an array size to use, allocate the proper memory for the array, prompt the user to enter the data, one element at a time, and return the completed array to the caller. print_list will print a comma separated list of the array elements on one line. avg_list will calculate the average value of all of the elements in the array. print_larger will print those elements of the array which are greater than the average of all of the elements. add_num will ask the user for an integer value between 5 and 10 (including 5 and 10), add that value to each element of the array. The array contents will then be printed again, with their new values, list_sum will add all of the elements of the array together to get a total value of them.
Chapter7: Using Methods
Section: Chapter Questions
Problem 20RQ
Related questions
Question
- The
program must be in JAVA language -
Main will contain a Scanner and a declaration of an integer array (but will not allocate the space for it), and some print statements. The rest of main is method calls.
- read_list: a method to ask the user for an array size to use, allocate the proper memory for the array, prompt the user to enter the data, one element at a time, and return the completed array to the caller.
- print_list will print a comma separated list of the array elements on one line.
- avg_list will calculate the average value of all of the elements in the array.
- print_larger will print those elements of the array which are greater than the average of all of the elements.
- add_num will ask the user for an integer value between 5 and 10 (including 5 and 10), add that value to each element of the array. The array contents will then be printed again, with their new values,
- list_sum will add all of the elements of the array together to get a total value of them.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning

C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning