Question: 2. Bill Calculation Wite a program (Bill py) that calculates the total of a bill to be paid for bagels at a bakery. When you
2. Bill Calculation Wite 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 total of your bill Here is the pseudo code for your program. Get the price for one bagel. Get the amount of bagels. If the arnount 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. now nuch in on bagn1 (in $1>0.90 You pay: $9.00 > - lucstage Ci/Unare/ritaffoogle De How much is one hagnt tin 5170,90 Hov many bagele do you need? 12 You pay =10.26 How kuob is one bagel (1a 5) 70 , 90 You pay bagein do you need? 15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
