An open API service indexing awesome lists of open source software.

https://github.com/pkx8326/tip_calculator_with_python

This is a simple tip calculator program with Python. It calculates how much each person should pay for a bill restaurant based on the following:
https://github.com/pkx8326/tip_calculator_with_python

calculator money python restaurant simple tip

Last synced: 7 months ago
JSON representation

This is a simple tip calculator program with Python. It calculates how much each person should pay for a bill restaurant based on the following:

Awesome Lists containing this project

README

          

# Tip_Calculator_with_Python
This is a simple tip calculator program with Python. It calculates how much each person should pay for a bill restaurant based on the following:
- Total bill
- Number of people to split
- Tip percentage

This program demonstrates, in addition to a simple arithmetic calculation, the use of input() and value type-casting functions in Python. Furthermore, it validates a user input with a while loop. The tip percentage can only be chosen from 10, 12, 15. With the while loop, the user will have to keep entering the number until the number falls into the mentioned list before the next step of the program can be commenced.

Credit: This program is a modification of a Python program found in Angela Yu's "100 Days of Code: The Complete Python Pro Bootcamp" on Udemy. You can go to the course's page by clicking the following link (not a ref. link): https://www.udemy.com/course/100-days-of-code/