Question: Solve it in C program please. Write a program that creates an array of 10 integers. the program should then use the following functions: getData()
Write a program that creates an array of 10 integers. the program should then use the following functions: getData() Used to ask the user for the numbers and store them into an array displayData() Used to display the data in the array. displayLargest() Used to find and display the largest number in the array. displaySmallest() Used to find and display the smallest number in the array. displayAveroge() Used to find and display the average of the numbers in the array displayRange() Used to find and display the range of numbers in the array. displayMode() Used to find and display the mode of numbers in the array. **displayMedian() Used to find and display the median value in the array. (Extra Credit!) may not use any global variables. must use a defined constant (#define MAX 10) and use this constant in your code. Your code must well for both an even number and an odd number of integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
