Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
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