""" Problem 1 A gym charges a monthly fee plus additional fee for each class. Write a function total_cost that has 3 parameters: monthly fee, list of prices for individual classes and list that contains the number of classes in each category the person attended in one month. The program returns the final monthly cost. For example, if a monthly fee is $10, list of prices is [1.99, 2.99, 3.99] and list of number of classes attended [2,3,4]. The final monthly cost will be: 10+1.99*2+2.99*3+3.99*4=38.91. Write main that first asks user to enter monthly fee and the number of classes gym is offering. The program randomly generates the prices for each class (floating point number between 1.99 and 3.99) and the list of number of classes person attended (list of integers between 1 - 5). The program uses function total_cost to find a total monthly cost of gym. """ import random def make_random_list(size, min_limit, max_limit): return [random.randint(min_limit, max_limit) for i in range(size)] def make_list_formatted(size, min, max): return [round(random.uniform(min,max),2) for i in range(size)] def total_cost(fee, prices, classes): sum=0 for i in range(len(prices)): sum=sum+prices[i]*classes[i] return sum+fee def main(): size=int(input("enter number of classes ")) fee=float(input("monthly fee ")) prices=make_list_formatted(size, 1.99,3.99) print("prices",prices) classes=make_random_list(size, 1,5) print("classes",classes) total=total_cost(fee, prices, classes) print("total cost",total) main()