Demonstrate the use of FUNCTIONS and ARRAYS.
Write a program that meets the following requirements:
1. Read in a maximum of 50 records, each record will be on a separate line using columns one and two.
Example:
26
O1
5H
2. Determine if each record is a positive integer. Keep track of all records that are not positive integers and print a list of them.
For all the positive integer data records:
3. Determine the average (mean) rounded to the nearest whole number, median, mode and standard deviation.
4. Compute the difference between each of the positive integers and the mean and store the difference in an array corresponding to the original integer number.
5. Determine which of the integers deviate's the most from the mean, print the number and how much it deviates.
6. Print the original list of integers along side the list of integers sorted from the lowest to the highest.
7. Print a bar graph indicating how much each integer deviates from the mean. Use the sorted list of integers to develop the graph.
8. Label and print all of the above findings.
Your program must have separate functions to determine each of the following: mean, median, mode, standard deviation, reading of the original data, printing of the invalid records, printing of the valid records, number 6 and 7 above.
Your program will have its final test with the integers from the data file C:\[login to view URL]