Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 939 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 939 Bytes

Statistics Calculator

A simple Go program that calculates statistical metrics (average, median, variance, and standard deviation) for a list of integers stored in a text file.

Overview

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.

Features

  • Computes the following statistics:
    • Average
    • Median
    • Variance
    • Standard Deviation
  • Simple command-line interface
  • Handles errors gracefully with appropriate exit codes

Prerequisites

  • Go programming language installed on your machine (version 1.14 or higher recommended).

Installation

  1. Clone the repository or download the source code:
    git clone https://platform.zone01.gr/git/kpetrout/math-skills
    cd math-skills
    

Usage

go run . data.txt or go run main.go data.txt