Uploaded by yaz_m2

C PROGRAM

advertisement
Name: __________________________________________________________________
Statistical Analysis
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.
displayAverage()
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.
displayMedian()
Used to find and display the median value in the array.
displayMode()
Used to find and display the mode of numbers in the array. Be sure to
account for more than one mode.
You may not use any global variables.
You must use a defined constant (#define MAX 10) and use this constant in your code. Your code must
work well for both an even number and an odd number of integers.
You will upload the source file to Moodle and turn in this sheet when finished!
Download