Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions

Question

which is an open standard variant of HSRP

Answered: 1 week ago

Question

How flying airoplane?

Answered: 1 week ago