#Solution for Mini Quiz Oct 9 #Write a program that first reads the number of customers in some #utilities company. Then, the program reads the monthly bill amount for each #customer. The program finds the following: # The amount paid by each customer per year. # The average monthly bill. # The number of customers who paid 50 dollars or more per month. #For example, if there are 5 customers, and the monthly bills are 45.99, #50.99, 89.99, 49.99, and 51.00, then the yearly bills are 551.88, 611.88, #1079.88, 599.88, 612.00. The average monthly bill is 57.59 and there are #3 customers who paid 50 dollars or more per month. size=int(input("enter number of customers ")) if(size>0): sum=0 i=1 count_50=0 while(i<=size): bill=float(input("enter monthly bill ")) sum=sum+bill if(bill>=50): count_50=count_50+1 print("yearly amount for customer",i,"is",format(bill*12,'.2f')) i=i+1 print("average bill amount", sum/size) if(count_50>0): print(count_50, "customers paid 50 or more per month") else: print("nobody paid 50 or more") else: print("invalid of input") #Lab report #input: size=5, bills: 1, 2, 3, 4, 5 #otput: 1*12=12, 2*12=24, 3*12=36, 4*12=48, 5*12=60 #average: (1+2+3+4+5)/5=3.0 #we got this output #input: size=5, bills: 45, 56, 78, 89, 56 #yearly amounts: 45*12=540 56*12=672 78*12=936 89*12=1068 56*12=672 #average bill: (45+56+78+56+89)/5 = 64.8