A simple Go program that calculates statistical metrics (average, median, variance, and standard deviation) for a list of integers stored in a text file.
This program reads a text file containing integers (one per line), computes various statistics, and prints the results to the console. It is useful for quickly analyzing data sets without the need for complex software.
- Computes the following statistics:
- Average
- Median
- Variance
- Standard Deviation
- Simple command-line interface
- Handles errors gracefully with appropriate exit codes
- Go programming language installed on your machine (version 1.14 or higher recommended).
- Clone the repository or download the source code:
git clone https://platform.zone01.gr/git/kpetrout/math-skills cd math-skills
go run . data.txt or go run main.go data.txt