Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Shipping Fees, Version 1 (ShippingFeesV1.py) Change the ShippingFees program from lab 05-1, so that a message will be displayed if the total is below

image text in transcribed

1. Shipping Fees, Version 1 (ShippingFeesV1.py) Change the ShippingFees program from lab 05-1, so that a message will be displayed if the total is below 50 and a different message is displayed if the total is $50 or above. Test your program with a total amount below and with a total amount above $50. Save your results from the Shell window as ShippingFeesTest1.txt Here is an example of how your program might run: Enter the total amount of your order 34.57 The total of your order (incl shipping fees) is \$44.57 > Execution\Lab 06-1 (A) ShippingFeesV1.py Enter the total amount of your order 50.45 Shipping Fees: \$--. The total of your order is $50.45 Submit ShippingFeesTest1.txt and ShippingFeesV1.py. 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 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 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 is one bagel (in \$)? 0.90 How many bagels do you need? 10 You pay: \$9.00 > = RESTART : C:/Users/Rita/Google Dr How much is one bagel (in \$)? 0.90 How many bagels do you need? 12 You pay: \$10.26 > === RESTART : C:/Users/Rita/Google How much is one bagel (in \$)? 0.90 How many bagels do you need? 15 You pay: \$12.82

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions