Question: 2. Bill Calculation Write a program (Bill.py) that calculates the total of a bill to be paid for bagels at a bakery. When you buy

 2. Bill Calculation Write a program (Bill.py) that calculates the total

2. Bill Calculation Write a program (Bill.py) that calculates the total of a bill to be paid for bagels at a bakery. When you buy more than 12 bagels you get a price discount of 5%. The program will ask you for the price of one bagel and for the amount of bagels you want to buy, and then print the fotal of your bill. Here is the pseudo code for your program. Get the price for one bagel. Get the amount of bagels. If the amount is 12 or more: Calculate the total with a 5% discount. Else: Calculate the total without discount. Display the total. Here are three examples of the program running: How much in one bagal (in 5) >0.90 How many bagels do you need? 10 You pay: $9.00 \$\$? = PESTART: C:/Unnra/Rita/Goog1a Dr How much in one bagal (in 5 ) ? 0.90 How many bagels do you noed? 12 You pay: $10.26 P37 lustarti Ci/Usora/riea/cooglo How mueb is one bagel (in 5 ) 70.90 How many beage.1s do you need? 15 You pay ,5,12. B2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!