[solved]-Hands Programming Arrays Problem 1 Short Description Take Array Size 10 Input User Find Ma Q39073435
Hands on programming with Arrays Problem 1: Short description: Take an array of size 10 as input from the user and find the maximum element in the array, minimum element in the array and average of all the elements in the array. Detailed Description: This program requires you to declare an array that can hold 10 integers. Prompt the user to enter 10 Integers as input and store them in the array using a for loop. Display what the user has entered. Then traverse this array to find the maximum element in the array, minimum element in the array and the average of all the elements in the array. #include<stdio.h> #define N 10 int main(void) //declare the array to hold 10 integers /* declare 4 integer variables one to hold the max element, One to hold the minimum element and one to hold the sum and one to hold the average” / 1/declare loop variable. //Prompt the user to enter the elements of the array. write a for loop to input the elements user entered and store them in an array/ 1/initialize the sin element and max element to the first element in the array. // initialize the sun to be a // initialize the avg to be //traverse the array doing the following //Inside the for loop //Calculate average – sum/10; //Print the max element, print the min element //print the average. Show transcribed image text Hands on programming with Arrays Problem 1: Short description: Take an array of size 10 as input from the user and find the maximum element in the array, minimum element in the array and average of all the elements in the array. Detailed Description: This program requires you to declare an array that can hold 10 integers. Prompt the user to enter 10 Integers as input and store them in the array using a for loop. Display what the user has entered. Then traverse this array to find the maximum element in the array, minimum element in the array and the average of all the elements in the array. #include #define N 10 int main(void) //declare the array to hold 10 integers /* declare 4 integer variables one to hold the max element, One to hold the minimum element and one to hold the sum and one to hold the average” / 1/declare loop variable. //Prompt the user to enter the elements of the array. write a for loop to input the elements user entered and store them in an array/ 1/initialize the sin element and max element to the first element in the array. // initialize the sun to be a // initialize the avg to be //traverse the array doing the following //Inside the for loop //Calculate average – sum/10; //Print the max element, print the min element //print the average.
Expert Answer
Answer to Hands on programming with Arrays Problem 1: Short description: Take an array of size 10 as input from the user and find … . . .
OR

