Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in python (pycharm) to replicate run 1 and run 2 provided in the bottom part of the prompt You are programming at Mile

Please do in python (pycharm) to replicate run 1 and run 2 provided in the bottom part of the prompt
image text in transcribed
You are programming at Mile High Comics. Chuck, the owner, is having a special promotion next month based on the number of purchased items in the shopping cart. Chuck has defined the following discount schedule: - 1 - 9 items: No Discount - 10-25 items: 5% discount - 26-39 items: 10% discount - 40 items or more: 15% discount - Shopping carts over $200 will get a 20% discount regardless of the number items Your program should do the following: - Prompt the user for the cart total - assume good data - Prompt the user for the number of items in the cart - assume good data. Your program should produce the following output for a single run: Run 1 What is the cart total: 25.70 What is the number of items in the cart: 8 Your cart total is $25.70, with a total of 8 items. You are not eligible for a discount. Run 2 What is the cart total: 30.00 What is the number of items in the cart: 12 Your cart total is $30.00, with a total of 12 items. You are eligible for a discount of 5% based on the number of items purchased .-precisely a $1.50 value. Your new total is $28.00

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

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions