Skip to content

Riznyk01/numeric-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Description

The application takes an input file containing a set of integers, both negative and positive,
arranged line by line.

The output of the application includes:

  1. The maximum value in the file.
  2. The minimum value in the file.
  3. The median.
  4. The arithmetic mean.

The longest sequence of consecutive numbers:
5. Increasing sequence.
6. Decreasing sequence.

In case there are multiple sequences of the same length, the application outputs all of them.

Installation

Before proceeding, ensure that Go (Golang) is installed on your computer.
You can download and install it from the official website if you haven't already.

Once you have Go installed, clone the repository:

git clone https://github.com/Riznyk01/numeric-analyzer.git
cd numeric-analyzer

Build the application

For Linux:

make build

For Windows:

make buildwin

If make isn't installed on the Windows OS, it can be installed using the Chocolatey packet manager.
Run Windows PowerShell with admin rights and type:

choco install make

If Chocolatey is not installed on the Windows OS, follow the instructions (installs in one step).

Run the application

To run the application, use the following command in the application's directory:

./numan -path=path-to-file

Tests

To run tests, use the following command:

make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors