Question: Please write 1-D array to write this code (C language) Part-1, Declare an array to store 5 whole numbers. Name this array data. Use the

 Please write 1-D array to write this code (C language) Part-1,

Please write 1-D array to write this code (C language)

Part-1, Declare an array to store 5 whole numbers. Name this array data. Use the a. named constant at declaration. A-6 b. Fill the array by prompting the user for values in a loop. c. Write another loop to display values stored in this array. d. Compute the average of the values stored in the array. Display the average with 2 digits after the decimal point. e- Increment each array element by 1(You need to write another loop)- f. Display the updated array to the screen Part-2: a. Declare another integer array of size 20 to store random test scores use the named constant at declaration. B-20Name this array scores. b. Write a loop to fill the array with random numbers between 0 and 100. c. Write a loop to display values stored in the array. d. Find the average of the scores stored in the array. Display the average to the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!