#Write a function discount_price that has two parameter: original price #and discount percent(integer). Function returns the final price after discount #was applied #Write a program (main), that fist reads the number of customers came to #the store. For each customer the program reads an original price. The #program finds the total price for all customers using the following rule: #price 100 dollars and below got 15% discount prices above 100 dollars got #25% discount In addition, program prints the discounted price for each #customer, and finds the average price, and the number of customers who got #15% discount and who got 25% discount def discount_price(original_price, discount): #original_price, discount- formal parameters result=original_price-original_price*discount/100 return result #result here belongs to function discount_price #result-original_price def main(): size=int(input("enter number of customers ")) count_15=0 count_25=0 total=0 if(size>0): for i in range(size): price=float(input("enter price ")) if(price>100): discount=25 count_25+=1 #count_25=count_25+1 else: discount=15 count_15+=1 #count_15=count_15+1 result=discount_price(price, discount) total+=result #total=total+result print("discounted price for item",i+1,"is", format(result,'.2f')) print("average price", format(total/size, '.2f')) print("total price", format(total,'.2f')) print(count_15, "items got 15%") print(count_25, "items got 25%") else: print("invalid input") main()