The “Chapter 3 – #12: Software Sales – Tony Gaddis – Starting Out With Python” programming obstacle comes from Tony Gaddis’ book, “Starting Out through Python (fourth Edition, Global Edition)”

## Problem

A software program agency sells a package that retails for \$99. Quantity discounts are provided according to the complying with table:

 Quantity Discount 10 – 19 10% 20 – 49 20% 50 – 99 30% 100 or more 40%

Write a program that asks the user to enter the variety of packages purchased. The regimen have to then display the amount of the discount (if any) and the full amount of the purchase after the discount.

## Solution

You are watching: A software company sells a package that retails for \$99

# 12. Software Sales# A software program firm sells a package that retails for \$99. # Quantity discounts are given according to the complying with # table:## Quantity Discount# 10–19 10% # 20–49 20% # 50–99 30% # 100 or more 40%## Write a regime that asks the user to enter the number of # packages purchased. The program need to then display the # amount of the discount (if any) and the total amount of # the purchase after the discount.PRICE_PER_PACKAGE = 99.00number_of_packperiods = float(input(' Enter # of packperiods purchased: '))display_message = ""if number_of_packperiods = 10 and number_of_packperiods = 20 and number_of_packperiods = 50 and number_of_packeras = 100: discount_portion = .40 # 40% package_total = number_of_packages * PRICE_PER_PACKAGE discount_amount = (package_total) * discount_portion grand_complete = package_full - discount_amount display_message = "Package full = \$" + format(package_full, ',.2f') + " Discount Percentage = " + format(discount_percent, '.0%') + " Discount amount = \$" + format(discount_amount, ',.2f') + " Grand also total = \$" + format(grand_complete, ',.2f')print(" " + display_message + " ")

## Video Walk Through

This video contains a step by action process of exactly how to settle “Chapter 3 – #12: Software Sales – Tony Gaddis – Starting Out With Python”.

## That’s it for Chapter 3 – #12: Software Sales

Thank you for taking an interest in what I do! I hope it was valuable for you as a lot as it assisted me along my journey in learning to code!

## You have the right to discover Python Chapter 3 Solutions:

Starting Out With Python | Chapter 3 | Programming Challenge Solutions

See more: Simple Skills Crossword Clue, Potential Answers For Simple Skills

occupychristmas.org

I gain teaching and sharing knowledge of the points that I am passionate about. I am a husband and also a father, much from perfect, and striving to be better eextremely day. Thank you for taking an interemainder in what I do!