Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create an application containing an array that stores eight integers. The application should call five methods that in turn: Display all the integers Display all
Create an application containing an array that stores eight integers. The application should call five methods that in turn:
- Display all the integers
- Display all the integers in reverse order
- Display the sum of the integers
- Display all values less than a limiting argument
- Display all values that are higher than the calculated average value.
Programming Exercise 8-4 ODI Instructions ArrayMethodDemo.j.. 1 public class ArrayMethodDemo 2 public static void main (String args[]) Create an application containing an array that stores eight integers. The application should call five methods that in turn: int[] numbers [12, 15, 34, 67, 4, 9, 10, 7]; int limit 12; display (numbers); displayReverse(numbers); displaySum(numbers); displayLessThan(numbers, limit); displayHigherThanAverage (numbers); lal 4 1. Display all the integers 2. Display all the integers in reverse order 3. Display the sum of the integers 4. Display all values less than a limiting 9 10 11public static void display(int[ numbers) 12 13 4public static void displayReverse(intl] numbers) 15 16 7 public static void displaySum(int[] numbers) 18 19 20 public static void displayLessThan (int[] numbers, int limit) 21 argument 5. Display all values that are higher than the // Write your code here calculated average value // Write your code here Grading // Write your code here Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade // Write your code here 23 24 public static void displayHigherThanAverage(int[] numbers) 25 26 27 28 // Write your code here Once you are happy with your results, click the Submit button to record vour score
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