Question: Write a program in java please and it has to work thanks Write the word or phrase that best completes each statement or answer the
Write the word or phrase that best completes each statement or answer the question The following declaration is used throughout this example: double [] sales = new doublet [10]; int index; double largestSale, sum. average; Write the code to do the following: Initialize every component of the array to the value 0 Read data from the keyboard and store it in the array. You will be filling the whole array. Print all of the items in the array in reverse order. Find the sum and the average of the elements in the array. Determine the smallest and largest element of the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
