Read data from the keyboard and store it in the array you


Question :

The following declaration is used throughout this example: double[] sales = new double [10];

int index;

double largeSale, sum, average;

Write the code to the following;

a. Initialize every component of the array to the value 0.

b. Read data from the keyboard and store it in the array. You will be filling the whole array.

c. Print all of the items in the array in reverse order.

d. Find the sum and the average of the elements in the array.

e. Determine the smallest and largest element of the array.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Read data from the keyboard and store it in the array you
Reference No:- TGS02909428

Expected delivery within 24 Hours