This program is designed to perform basic statistical analysis on a dataset provided in a file named data.txt
. It calculates the average, median, variance, and standard deviation of the numbers in the dataset.
- Go 1.16 or later installed on your system.
- Clone or download the repository to your local machine.
git clone https://github.com/nyunja//math-skills.git
- Navigate to the directory containing the program files.
cd math-skills
- Ensure that the dataset file is named
data.txt
and located in the same directory as the program. - Open a terminal and navigate to the directory containing the program.
- Run the program using the following command:
go run main.go
- The program will display the calculated statistical values in the terminal.
- Ensure that the dataset file (
data.txt
) contains numerical values separated by either carriage return and newline (\r\n
) or just the newline (\n
) characters. - The program does not currently support datasets with different delimiters or formats.
- If there are any errors encountered during execution (e.g., incorrect file name, empty file, invalid numbers), appropriate error messages will be displayed in the terminal.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
This program is licensed under the MIT License.