Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions