Question: Cosc 1336 Programming Fundamentals I Program 5 Decision Structures A software company sells a package that retails for $99. Quantity discounts are given according to
Cosc 1336 Programming Fundamentals I Program 5 Decision Structures A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Quantity Discount 10 19 20% 20 49 30% 50 69 35% 70 99 40% 100 or more 50% Write a program that asks for the number of units sold and computes the total cost of the purchase and the saving due to the discount applied. The program should also display the number of units purchased and the discount in percentage. The output should include the following text. Number of units purchased is: Discount applied is: Total saving due to discount is: The total cost of the purchase is: Do NOT use any logical operator in the program, you will not receive credit for the program if you do. Run the program three times with 5, 59, and 110 as the user input for the number of units purchased. the teacher want to using like that with python def main(): developerInfo() unitsPurchased = int(input('Enter the number of units solds: ')) if unitsPurchased >= 100: discount = 50 elif unitsPurchased >= 70: discount = 40 totalSavings = totalCost = print(). answer with python as the teacher give me steps as above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
