There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10
greater than 10 or less than 1). Assume you obtained these numbers from an experiment you (or someone else) ran, and now you want to write a program to do the data analysis.
Your data analysis must include:
1) Find the Arithmetic Mean of the 20 integers (this will be a floating point number).
2) Generate a table that lists each integer from 1 to 10 and the number of times it occurs. (This would be the precursor step to generating a histogram, which is NOT required in this problem)
3) Find the mode of the 20 integers (see below for the definition of a mode).
Example Output:
The mean of the data was 5.600000
The mode of the data was7
Integer Occurences
---------------------------
1 2
2 3
3 0
4 1
5 2
6 3
7 4
8 2
9 2
10 1
You must output the three values on the output screen and if possible, also on an output file called "results.txt"