RETAIL_PRICE = 99.00 HIGH_DISCOUNT_PERCENT = 0.5 MEDIUM_DISCOUNT_PERCENT = 0.4 LOW_DISCOUNT_PERCENT = 0.3 MINIMUM_DISCOUNT_PERCENT = 0.2 HIGH_DISCOUNT_UNITS = 100 MEDIUM_DISCOUNT_UNITS = 50...


RETAIL_PRICE = 99.00





HIGH_DISCOUNT_PERCENT = 0.5

MEDIUM_DISCOUNT_PERCENT = 0.4

LOW_DISCOUNT_PERCENT = 0.3

MINIMUM_DISCOUNT_PERCENT = 0.2





HIGH_DISCOUNT_UNITS = 100

MEDIUM_DISCOUNT_UNITS = 50

LOW_DISCOUNT_UNITS = 20









# Variables are

#customerName

#UnitsPurchased

#DiscountPercentage

#DiscountDollars









customerName = str(input("Please enter your name: "))

print('')

print("Hello,",customerName, ". Welcome to Bugz App Software calculator!")





unitsPurchased = int(input("Enter units purchased: "))





discountRate = 0





if unitsPurchased >= HIGH_DISCOUNT_UNITS:


discountPercentage = HIGH_DISCOUNT_PERCENT

else:


if unitsPurchased >= MEDIUM_DISCOUNT_UNITS:


discountPercentage = MEDIUM_DISCOUNT_PERCENT


else:


if unitsPurchased >= LOW_DISCOUNT_UNITS:


discountPercentage = LOW_DISCOUNT_PERCENT


else:


discountPercentage = MINIMUM_DISCOUNT_PERCENT









totalCostOfUnits = unitsPurchased * RETAIL_PRICE

discountDollars = totalCostOfUnits * discountPercentage

finalCostOfUnits = totalCostOfUnits - discountDollars





print("You entered,",customerName,"as your name.")

print('')





print("you entered: ",unitsPurchased,"for units purchased.")

print('')





print("The total cost of the units will be: $",totalCostOfUnits,)

print("The discount percentage is: ",discountPercentage * 100, "%")

print("The dollar amount of the discount given is: $",discountDollars)

print("The final cost is: $",finalCostOfUnits)














Sep 23, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here