Categories: Homework on time

Write a program (ArrayDemo.java) that prompts the user to enter 5 integer numbers. Once the user ent

Write a program (ArrayDemo.java) that prompts the user to enter 5 integer numbers. Once the user enters the 5 numbers, the program must determine and output the average, the largest, and smallest of 5 numbers.Use the lecture slides and the example videos as a guide to complete this assignment. Use the Scanner class as shown in the video of the Arrays module to read user input from the terminal window.You must define the methods listed below in your program. Make sure to keep the keyword “static” when you define the methods (we will learn later what static means). Call these methods from the “main” to get the job done.static float getAverage(int[] data) {// put your implementation here}static int getLargest(int[] data) {// put your implementation here}static int getSmallest(int[] data){// put your implementation here}

Don't use plagiarized sources. Get Your Custom Essay on
Write a program (ArrayDemo.java) that prompts the user to enter 5 integer numbers. Once the user ent
Just from $13/Page
Order Essay
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago