The Poll Result Calculator is a simple tool to calculate the total number of votes and the percentage of each vote option in a poll. It helps visualize the vote distribution and determine the percentage share of each option from the total votes.
- Total Vote Calculation: Automatically calculates the total votes from the input.
- Percentage Calculation: Displays the percentage share of each vote option relative to the total.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
You’ll need the following tools installed on your machine:
-
Clone the repository:
git clone https://github.com/your-username/poll-result-calculator.git
-
Navigate to the project directory:
cd poll-result-calculator -
Install the required dependencies:
npm install
You can run the application using the following commands:
-
Run the project in development mode:
This will start the project in development mode with live reloading for any code changes.
npm run dev
-
Run the project in production mode:
This will build and run the project optimized for production.
npm start
- Input the total number of votes and the count for each option.
- The calculator will output the total votes and the percentage for each option.
For example:
- Option A: 30 votes
- Option B: 20 votes
- Total Votes: 50
- Percentage for Option A: 60%
- Percentage for Option B: 40%
- React.js
- npm
If you'd like to contribute, feel free to create a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.