
#create a coffee store that sells coffee, and shows the prices of the coffee per size, tracks the ammount of sales of coffee for the week
brads_beans_sizes = ["small cup", "medium cup", "large cup", "X-large cup"]
brads_beans_prices = [2, 3, 4.25, 4.75]
coffees_sold = [23, 31, 19, 28]
#give the customers the choices they have available + the prices
print("Hello! Welcome to Brads Beans, would you like a cup of our coffee today?")
print("We have a " + str(brads_beans_sizes[0]) + " for $" + str(brads_beans_prices[0]) + ", a " + str(brads_beans_sizes[1]) + " for $" + str(brads_beans_prices[1]) + ", a " + str(brads_beans_sizes[2]) + " for $" + str(brads_beans_prices[2]) + " and a " + str(brads_beans_sizes[3]) + " for $" + str(brads_beans_prices[3]))
#ok now we want to multiply the ammount of cups we have sold for this week with the cost of the coffee
cup_sales_small = brads_beans_prices[0] * coffees_sold[0]
cup_sales_medium = brads_beans_prices[1] * coffees_sold[1]
cup_sales_large = brads_beans_prices[2] * coffees_sold[2]
cup_sales_x_large = brads_beans_prices[3] * coffees_sold[3]
sales_for_week = cup_sales_small + cup_sales_medium + cup_sales_large + cup_sales_x_large
print("We have generated $" + str(sales_for_week) + " of income for the week")
#I want to figure out the average cost of coffee per cup that a customer buys
cups_sold = 0
for sales in coffees_sold:
if sales > 0:
cups_sold += sales
average_sales = sales_for_week / cups_sold
print("The average cost of coffee per cup is $" + str((average_sales)))
#i see that average sales is longer than what i want "3.49", I have yet not learned to round hunderths yet but i will come back and fix it