Skip to content

A simple Python CLI app to calculate and split a bill with tip.

ZACKSANGEM/Tip-Calculator-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Python Tip Calculator

This is a simple command-line application that calculates the total bill amount including tip and divides it among a specified number of people.

Features

  • Asks for the total bill amount.
  • Asks for the desired tip percentage (e.g., 10, 12, or 15).
  • Asks for the number of people to split the bill.
  • Calculates and displays the amount each person should pay, formatted to two decimal places.

How to Run

  1. Clone this repository: git clone https://github.com/ZACKSANGEM/python-tip-calculator.git (I'll update this URL later)
  2. Navigate to the project directory: cd python-tip-calculator
  3. Run the Python script: python tip_calculator.py

Technologies Used

  • Python 3.x
  • Basic arithmetic operations
  • Data type conversion (string to float/int)
  • F-strings for formatting output

Learning Notes

This project was completed as part of Dr. Angela Yu's 100 Days of Code: The Complete Python Pro Bootcamp on Udemy (Day 2). It reinforced my understanding of data types, type casting (converting strings to numbers), and using f-strings for precise output formatting, especially with floating-point numbers.


Disclaimer: This project is for learning purposes and was developed as part of a bootcamp.

About

A simple Python CLI app to calculate and split a bill with tip.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages