Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python (.py file) Part 1 - Dynamic Tip Calculator Your program accepts the total amount listed on the bill, the tip percentage that you would
Python (.py file)
Part 1 - Dynamic Tip Calculator Your program accepts the total amount listed on the bill, the tip percentage that you would like to leave, how many individuals will be splitting the bill When the program finishes, it prints the total tip amount and how much the total bill will be (including tip). Finally, it shows how much each person should contribute to the bill (assume the bill will be split evenly and you are not sure how many individuals will show up for lunch). Sample input/output: Hello! I'm here to help you calculate your tip How much was your bill?56.50 How much tip would you like to leave? (enter a number for the percent): 17 How many individuals are splitting the bill? (Enter an integer value) :4 Thanks! You need to leave $9.61 as a tip. Your total bill will be $66.11. Each individual should pay $16.53 Comment your source code and describe your code to someone who may be viewing it for the first time. Also include your name, the date, your class section and the name of your program at the top of your fileStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started