Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write code in C. If possible please comment the major steps. Thanks in advance! Relevant Concepts: Array and Array with user-defined functions Problem 1:
Please write code in C.
If possible please comment the major steps.
Thanks in advance!
Relevant Concepts: Array and Array with user-defined functions Problem 1: Write a C program that Read 12 integers (from a user) and stores them in an array. Then - Display an average of all elements in the array, - Display the array element in a reverse order, i.e. display the last element first. - Check whether the array is symmetric, i.e. if the value of the first element- the last one, if the value of the second element the one before the last one, Note: The loop structure must be used to get numbers entered by a user into an array, access the array to display the elements in the reverse order and to find the average value. If your program does not use the loop, you will get 0 point for this problem! Sample code execution 1: Enter 12 integer numbers (each one separated by a space) 12345 6654321 Average of all data points is 3.50 An array in reverse order: 1234 56654 3 21 This array is symmetric Sample code execution 2: Enter 12 integer numbers (each one separated by a space) 150 92 45 76 78 76 48 90 151 45 95 100 Average of all data points is 87.17 An array in reverse order 100 95 45 151 90 48 76 78 76 45 92 150 This array is NOT symmetric Sample code execution 2: Enter 12 integer numbers (each one separated by a space) 15 43 24 18 56 39 39 56 18 24 43 15 Average of all data points is 32.50 An array in reverse order: 15 43 24 18 56 39 39 56 18 24 43 15 This array is symmetricStep 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