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:
- The maximum value in the file.
- The minimum value in the file.
- The median.
- 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.
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-analyzerFor Linux:
make buildFor Windows:
make buildwinIf 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).
To run the application, use the following command in the application's directory:
./numan -path=path-to-fileTo run tests, use the following command:
make test