Skip to content

Commit e963e1c

Browse files
committed
Add Tip Calculator
Takes Meal Cost, Tax Percentage & Tip Percentage As Input And Calculates Total And Individual Costs.
1 parent aceae38 commit e963e1c

File tree

4 files changed

+103
-17
lines changed

4 files changed

+103
-17
lines changed

.idea/dictionaries/kunal.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 74 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TipCalculator.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
print("How much did the meal cost?")
2+
meal = float(input())
3+
print("Welcome, How Much is the Tax Percentage?")
4+
taxno = float(input())
5+
tax = taxno / 100
6+
print("How much is the tip percentage?")
7+
tipno = float(input())
8+
tip = tipno / 100
9+
total = meal + meal*tax + meal*tip
10+
print("The Total Bill Will Be =>", total)
11+
print("The Tax Will Be =>", meal*tax)
12+
print("The Tip Will Be =>", meal*tip)
13+
print("Press Any Key To Exit")
14+
input()
15+
exit()

0 commit comments

Comments
 (0)