Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 3) Python Program A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Write a

Part 3) Python Program

A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Write a program that asks for the number of units sold and computes the total cost.

Quantity

Discount

10 19

20%

20 49

30%

50 99

40%

100 or more

50%

So for example if you ordered 5 items it would cost you $495 (No discount).

If you ordered 25 items, it would cost you $1732.50 with 30% discount (25*99 25*99*0.3).

Note that you can use the round (a, 2) method to round a number to two decimal places. If a = 4.56789 and you code b = round (a, 2), then b will be 4.47.

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

From Herds To Insights Harnessing Data Analytics For Sustainable Livestock Farming

Authors: Prof Suresh Neethirajan

1st Edition

B0CFD6K6KK, 979-8857075487

More Books

Students also viewed these Databases questions

Question

Evaluating Group Performance?

Answered: 1 week ago