Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are a developer at Mile High Comics - - the mecca of comic book collecting. Chuck has been selling comics for over 5 0

You are a developer at Mile High Comics -- the mecca of comic book collecting. Chuck has been selling comics for over 50 years. One of Chuck's best strategies is to provide a discount as consumers purchase more comics.You have been asked to develop a small proto-type program to determine the discount, the discount amount, and the new total for their online shopping cart application.The following discount strategy is to be used:1-5 items: No discount.6-20 items: 5% discount21-35 items: 10% discount36 or more items: 15% discountShopping Carts over $ 200 will get a 20% discountOnly one discount can be used -- it should always be the highest discount.Your program should do the following:Prompt for the number of items -- assume good data.Prompt for the cart total -- assume good data.Calculate the discount and new total as necessary.Display the appropriate output.

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions