#Nov 11 Lab Assignment Program 1 #In this program you will find a total price of the purchase based on the following rule: #items priced a 100 dollars and below receive 15% discount. #All other items receive 25% discount. #Write a program that first reads one integer - the number of items user purchased in the store. #The program then reads the price for each item. #The program finds the total purchase price based on the rule above. #Use Loop FOR #WE ASSUME THAT INPUT IS VALID: num>0 and price>0 DISCOUNT_15=15 DISCOUNT_25=25 def main(): num=int(input("Enter number of items purchased ")) total = 0 for i in range(num): price=float(input("Enter price of item ")) if(price<=100): discount_price=price*(1-DISCOUNT_15/100) else: discount_price=price*(1-DISCOUNT_25/100) total = total+discount_price print("TOTAL COST IS", total) main()