Skip to content

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:

Notifications You must be signed in to change notification settings

pkx8326/Tip_Calculator_with_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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/

About

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:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages