Question: PYTHON: I need help with this program. my discount isn't showing up. 1 num_of_packages = int(input(Number of packages purchased: )) 3 full_price = 99 2
PYTHON: I need help with this program. my discount isn't showing up.



1 num_of_packages = int(input("Number of packages purchased: ")) 3 full_price = 99 2 4 5 6 ##discount amount = full_price* discount_rate 7 ##final_price = full price - discount_amount 8 9 15 00 10 if num_of_packages 300 : 23 print("Invalid quantity. Must be between 0 and 300") 24 #quantity = num_of_packages * full_price 25 discount_amount = full_price * discount_rate 26 final_price = full_price - discount_amount 27 28 print (f"Quantity Purchased: (num_of_packages}") 29 print(f"Full Price: ${full price * num_of_packages: 2f}") 30 print("Discount Rate: {discount_rate:. ef}%") 31 print(f"Discount Amount: {full_price* discount_rate}") 32 print (f"Final Price: {full_price - discount_amount}") 34 #(FIX) 35 #my discount isnt working correctly. 33 36 Ln: 35 Col: 36 Number of packages purchased: 10 B Quantity Purchased: 10 Full Price: $990.00 Discount Rate: 0% Discount Amount: 39.6 2 Final Price: 59.4 3 >>> Ln: 12 Col: 4 Problem Specifications. Problem 12, page 164 (with modifications)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
