Welcome to the Tip Calculator project! This application is designed to calculate tips quickly and efficiently, making it easy for users to determine the appropriate tip amount based on their total bill. Built with HTML, CSS, and JavaScript, this project showcases the power of DOM manipulation.
To run this project locally, follow these steps:
-
Clone the repository to your local machine.
git clone https://github.com/ramzancodeclub/Tip-Calculator.git
-
Open the project folder in your code editor.
-
Open the
index.html
file in your web browser.
To use the tip calculator:
-
Open the live demo or run it locally.
-
Enter the total bill amount.
-
Adjust the tip percentage using the provided drop down menu.
-
Optionally, specify the number of people to split the bill.
-
Instantly see the calculated tip and total amount per person.
- HTML
- CSS
- JavaScript (DOM manipulation)
-
User-Friendly Interface: Simple and intuitive design for easy usage.
-
Tip Calculation: Calculate tips based on a specified percentage of the total bill.
-
Split Bill Option: Optionally split the total bill among a specified number of people.
-
Responsive: Responsive design for various screen sizes.
The project is structured for easy navigation, featuring a clean and responsive design.
- Muhammad Ramzan - Project Creator
This project is licensed under the MIT License. Feel free to use and modify the code as per the license terms.
If you'd like to contribute to the project, follow these steps:
- Fork the project.
- Create a new branch for your feature:
git checkout -b feature-name
. - Commit your changes:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-name
. - Open a pull request.
If you have any questions, suggestions, or just want to connect, feel free to reach out:
- Email: ramzancodeclub@gmail.com
- Portfolio: muhammad-ramzan.vercel.app
- LinkedIn: in/ramzancodeclub
The project includes a set of tests to ensure the functionality is working as expected. To run the tests, use the following command:
npm test
Happy tipping!