Skip to content

A simple bill splitting application built with vanilla JavaScript. Easily calculate the amount each person owes, customize tip percentages, and ensure fair bill division.

Notifications You must be signed in to change notification settings

immortalWebDev/Bill-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🏋️‍♂️ Bill Splitter

A lightweight and user-friendly bill splitting application built with vanilla JavaScript. Easily calculate the amount each person owes, customize tip percentages, and ensure fair bill division.

🚀 Features

  • Calculate bill split for:
    • ✅ Total bill amount.
    • ✅ Number of people.
    • ✅ Custom tip percentages.
  • Fully responsive design for mobile and desktop.
  • Intuitive user interface.

🔧 Tech Stack

  • HTML
  • CSS
  • JavaScript

🎯 How It Works

  1. Enter the Total Bill Amount.
  2. Specify the Number of People sharing the bill.
  3. Select a Tip Percentage, or enter a custom value.
  4. The app calculates and displays the amount each person owes, including the tip.

📂 Project Structure

bill-splitter/
├── index.html     # UI Layout
├── style.css      # Styling
└── script.js      # Core Logic

📜 Usage

  1. Clone this repository:
    git clone https://github.com/immortalWebDev/bill-splitter.git
  2. Navigate to the project directory:
    cd bill-splitter
  3. Open index.html in your browser:
    open index.html

🔑 Example

Input:

  • Total Bill: 1200
  • Tip Percentage: 10%
  • Number of People: 4

Output:

Amount Per Person: 330

📌 To-Do

  • Add a currency selection feature.
  • Implement a dark mode toggle.
  • Add a history feature to save previous calculations.

🧑‍💻 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork this repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Commit your changes:
    git commit -m "Add new feature"
  4. Push the branch:
    git push origin feature-name
  5. Open a pull request.

🌐 Try live demo

❤️ Acknowledgments

Thanks to all developers who inspire creative and efficient solutions.

📧 Contact

For any inquiries, feedback, or support:


Enjoy seamless bill splitting! 😊

Created with 💕 by Piyush

About

A simple bill splitting application built with vanilla JavaScript. Easily calculate the amount each person owes, customize tip percentages, and ensure fair bill division.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published