You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nprimo 42cea5f8f2 fix(math-skills): update path of bin to execute 3 months ago
..
audit fix(math-skills): update path of bin to execute 3 months ago
README.md rephrase presentation of the input file 1 year ago

README.md

math-skills

Objectives

The purpose of this project is for you to calculate the following:

  • Average
  • Median
  • Variance
  • Standard Deviation

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 statistical population: each line contains one value.

To run your program a command similar to this one will be used 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
Median: 4
Variance: 5
Standard Deviation: 65

Please note that the values are rounded integers.

Testing

Your program will be tested by an auditor who will run a program provided by us. This program creates a random data set of numbers and prints the result. The auditor job is to compare how your program performed.

You can choose the language in which you want to build your program.

This project will help you learn about: