#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(price, disc): return (price-price*disc/100) def main(): num=int(input("enter number of customers ")) if(num>0): total=0 c15=0 c25=0 for i in range(num): price=float(input("enter price ")) if(price<=100): c15=c15+1 res=discount_price(price, 15) else: c25=c25+1 res=discount_price(price, 25) print("customer",i+1,"paid",res) total=total+res print("ave price", total/num) print(c15,"got 15% discount") print(c25,"got 25% discount") print("total", total) else: print("nobody came today") main()