Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Shipping Calculator Deliverables You must submit your . py file. Name the file: lastname _ firstname _ assign 1 . py . Example: smith
Instructions
Shipping Calculator
Deliverables
You must submit your py file. Name the file: lastnamefirstnameassignpy
Example: smithbarbassignpy
Specifications
Create a program that calculates the total cost of an order including shipping.
View the output below to determine the code.
Use empty "print commands to create spacing between items as shown.
Use a While loop to keep the program active until the user responds with a n
If the user enters a number thats less than zero, display an error message and give the user a chance to enter the number again.
Hint: use a "continue" statement inside the if after you alert them to the problem
Use the following table to calculate shipping cost:
COST OF ITEMS SHIPPING COST
$
$
$
FREE
Sample inputoutput:
Shipping Calculator
Enter cost of items ordered:
Shipping cost:
Total cost:
Continue? yn: y
Enter cost of items ordered:
You must enter a positive number. Please try again.
Enter cost of items ordered:
Shipping cost:
Total cost:
Continue? yn: n
Bye!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started