Question
Python Programming This assignment will allow you to use if-statements to control the logical flow of your program. The application should calculate the total cost
Python Programming
This assignment will allow you to use if-statements to control the logical flow of your program.
The application should calculate the total cost of an order including shipping.
- Print the name of the program "Shipping Calculator"
- Prompt the user to type in the Cost of Items Ordered
- 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.
- Use the following table to calculate shipping cost:
Cost of Items | Shipping Cost |
<30 | 5.95 |
30.00 - 49.99 | 7.95 |
50.00-74.99 | 9.95 |
> 75.00 | FREE |
- Print the Shipping cost and Total Cost to ship the item
- End the program with an exit greeting of your choice (e.g. Thank you for using our shipping calculator!)
Example 1:
=================
Shipping Calculator
=================
Cost of items ordered: 49.99
Shipping cost: 7.95
Total cost: 57.94
Thank you for using our shipping calculator!
Example 2:
=================
Shipping Calculator
=================
Cost of items ordered: -65.50
You must enter a positive number. Please try again.
Cost of items ordered: 65.50
Shipping cost: 9.95
Total cost: 75.45
Thank you for using our shipping calculator!
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