OGordoo
45a9e12224
|
3 years ago | |
---|---|---|
.. | ||
audit | 3 years ago | |
README.md | 3 years ago |
README.md
math-skills
Objectives
The purpose of this project is for you to calculate the following:
- Average
- Standard Deviation
- Variance
- Median
Instructions
Your program must be able to read from a file and print the result of each statistic mentioned above. In other words your program must be able to read the data present in the path passed as argument. The data in the file will be presented as the following example:
189
113
121
114
145
110
...
This data represents a graph in which the values of the x axis are the number of the lines (0, 1, 2, 3, 4, 5 ...) and the values of the y axis are the actual numbers (189, 113, 121, 114, 145, 110...).
To run your program will be used a command similar to this one if your project is made in Go:
>$ go run your-program.go data.txt
After reading the file, your program must execute each of the calculations asked above and print the results in the following manner (the following numbers are only examples):
Average: 35
Standard Deviation: 65
Variance: 5
Median: 4
Testing
Your program will be tested by an auditer who will run a program provided by us, that creates a random data set of numbers and prints the result. The auditer job is to compare how your program performed.
You can choose in which language you want to build your program.
This project will help you learn about:
- Statistics and Mathematics