This project is a simple web application that helps you split a bill among a group of people. It calculates the total amount each person has to pay, including a tip, and provides real-time feedback on the inputs.
- Input Validation: Ensures that the bill amount and the number of people are greater than zero.
- Real-time Calculation: Updates the results as you type.
- Custom Error Handling: Displays error messages and highlights input fields with invalid values.
- Reset Functionality: Clears all inputs and results with a single click.
- HTML: For the basic structure of the application.
- CSS: For styling the application and handling error states.
- JavaScript: For dynamic behavior, input validation, and calculations.
- Enter the Bill Amount: Type the total bill amount into the input field labeled "Enter bill amount".
- Enter the Number of People: Type the number of people sharing the bill into the input field labeled "Enter number of people".
- View Results:
- The tip amount per person will be displayed under "Tip per person".
- The total amount per person will be displayed under "Total per person".
- Reset the Inputs: Click the "Reset" button to clear all inputs and results.
