/tip-calculator

A simple tip calculator for a group of people. It prompts the user for the total bill amount, the tip percentage and the number of people to split the bill with. The calculator then calculates and outputs the amount each person should pay.

Primary LanguagePython

TIP CALCULATOR

A simple command-line based tip calculator to calculate the amount each person should pay when splitting a bill.

Getting Started

To run the tip calculator, simply run the code in your preferred Python environment. The calculator will prompt the user for the total bill amount, the tip percentage and the number of people to split the bill with. The calculator then calculates and outputs the amount each person should pay.

Features

  1. Prompts the user for the total bill amount in Kenyan Shillings (KES)
  2. Prompts the user for the tip percentage (10%, 12% or 15%)
  3. Prompts the user for the number of people to split the bill with
  4. Calculates and outputs the amount each person should pay, rounded to 2 decimal places.

Built With

  • Python programming language

Contributing

This is an open-source project, feel free to fork and contribute by creating a pull request.