A simple and intuitive tip calculator built with JavaScript. This application allows users to input the total bill amount, the number of people splitting the bill, and choose a tip percentage. The application then calculates and displays the tip amount per person and the total amount per person.
- Input fields for bill amount, number of people, and custom tip percentage
- Buttons for selecting predefined tip percentages (5%, 10%, 15%, 25%, 50%, and custom)
- Display for the calculated tip amount per person
- Display for the calculated total amount per person
- Reset button to clear all input fields and reset the displays
- Enter the total bill amount in the input field.
- Enter the number of people splitting the bill in the input field.
- Choose a tip percentage by either clicking on a predefined percentage button or entering a custom percentage in the input field.
- The application will automatically calculate and display the tip amount per person and the total amount per person.
- To reset all input fields and clear the displays, click the "Reset" button.
- HTML5
- CSS3
- JavaScript
If you have any suggestions or want to add extra features to this tip calculator, feel free to fork the repository and create a pull request. Here are the steps to contribute:
- Fork the repository.
- Create a new branch for your feature.
- Commit your changes to the new branch.
- Push the new branch to your fork.
- Create a pull request from your fork to the original repository.
Please ensure that your pull request adheres to the following guidelines:
- Use a clear and descriptive title for the pull request.
- Provide a step-by-step description of the changes you made.
- Make sure that your code is well-documented and follows good coding practices.
- Ensure that your changes do not introduce any new bugs or issues.
Thank's for your contributions!