This project runs a JavaScript application that processes data and produces outputs. Follow the steps below to set up and run the application.
Open your terminal and navigate to the project directory. Run the following command to initialize a new Node.js project:
npm init -y
To execute the application, use Node.js to run the main.js file. Ensure that Node.js is installed on your system. In your terminal,
node main.js
Input File: input.json
Place your input data in the input.json
file. The application reads from this file to process the data. Ensure the data is correctly formatted as expected by the application.
The application will produce outputs based on the data provided. Example outputs for the test cases are:
Output for Test Case 1: 2.9999999999999987
Output for Test Case 2: 33198405829207.97