Skip to content

A command-line program that reads numerical data from a file and calculates key statistical metrics: average, median, variance, and standard deviation. Results are printed as rounded integers. Built to reinforce statistical concepts through practical programming.

Notifications You must be signed in to change notification settings

somotto/math-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math Skills

This project is a statistical calculator designed to calculate various statistical measures from a dataset provided in a file. It calculates the average, median, variance, and standard deviation of the dataset.

How to Install and Run the Project:

To install and run the project, follow these steps:

  • Make sure you have Go installed on your machine.
  • Clone the repository from here.
  • Navigate to the project directory.
cd math-skills
  • Run the following command:
go run your-program.go data.txt
example:
go run . data.txt

How to Use the Project:

Once the project is installed and running, it will calculate the statistical measures and print the results in the console. Follow the instructions mentioned above in the installation section. The data in the file will be presented as the following example:

189
113
121
114
145
110
...

License:

This project is licensed under the MIT License. See the LICENSE file for details.

How Other Developers Can Contribute to the Project:

Contributions to the project are welcome. If you'd like to contribute, follow these steps:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and commit them with clear, descriptive messages.
  • Push your changes to your fork.
  • Submit a pull request to the main repository.

Testing and How to Run Tests:

Tests for the project are available in the math_test.go file. To run the tests, follow these steps:

  • Navigate to the project directory.
cd mathfunctions/
  • Run the following command:
go test -v

This will run all the tests in the project(mathfunctions) and display the results.

Feel free to reach out if you have any questions or need further assistance with the project.

contact : stephenonyango4783@gmail.com

Contributions and feedback are appreciated!

About

A command-line program that reads numerical data from a file and calculates key statistical metrics: average, median, variance, and standard deviation. Results are printed as rounded integers. Built to reinforce statistical concepts through practical programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages