
Patrick B. answered 02/22/21
Math and computer tutor/teacher
OPTIONB = 0.125
OPTIONC_BEFORE = 0.10
OPTIONC_AFTER = 0.14
OPTIONC_NUM_COPIES = 4000
numCopies = input("Please input # of copies sold :>")
price = input("Please input the net price per copy :>")
B = float(OPTIONB) * int(numCopies) * float(price)
_C=0
if int(numCopies) < int(OPTIONC_NUM_COPIES):
_C = int(numCopies)*float(OPTIONC_BEFORE)
else:
_C = (int(numCopies)-int(OPTIONC_NUM_COPIES))*float(OPTIONC_AFTER) + int(OPTIONC_NUM_COPIES) * float(OPTIONC_BEFORE)
C = float(_C) * float(price)
print("----------------------------------------")
print(" # of copies sold: " + str(numCopies))
print(" price: $ " +"{:.2f}".format(float(price)))
print(" option B: $ " +"{:.2f}".format(float(B)))
print(" option C: $ " +"{:.2f}".format(float(C)))