The application can solve quadratic equations. It works in two modes. The first is non-interactive if the user passes the parameter (path to the number file) when starting the program. The second is interactive, if no additional parameter has been provided, then the user is asked to enter 3 values of variables in manual mode.
-
Clone the repo:
git clone https://github.com/DanilByaliy/QuadraticEquationSolver.git
-
Open project directory and install NPM packages:
cd QuadraticEquationSolver npm install
-
Start the application:
Interactive mode:
node index.js
Non-interactive mode:
node index.js text.txt
In non-interactive mode, the application does not interact with the user, but with the file in which the values of variables are specified. To work correctly, you need to transfer the correct file name when starting the program. The file must also be in a clear format. Numbers must be written in one space, and at the end there must be a newline (1 0 0 === 1\s0\s0\n). If the path to the file is specified incorrectly or the file format does not match the one described above, then the program will crash.