Question: use python to perform the following task Using on average 4 0 bags of coffee beans, the team at Smokey's Cafe is able to serve

use python to perform the following task
Using on average 40 bags of coffee beans, the team at Smokey's Cafe is able to serve
10,000 cups of coffee per week. Each Friday afternoon, the team estimates how many
bags of coffee beans they need to order, if their stock is running low.
Given the number of cups of coffee served per week (), the average number of bags
needed to produce 10,000 cups of coffee (), and the number of coffee bags already in
stock (), write a program that decides whether to buy or not to buy, based on the
following rules:
. If there are enough bags for the coming two weeks, do not order anything
. If there are enough bags for the coming week, but not for two weeks, order the
amount required to complete a two-week stock
. If there are not enough bags of coffee for the coming week, order the amount
required to complete a two-week stock, and add an extra week's stock for reserves
Based on this decision, print the total number of bags that should be ordered.In []:
num_trees =1800 # Replace with a value of your choice.
# Enter your code belowIn []:
blood_type_receiver ='A' # Replace with a value of your choice
blood_type_donor ='B' # Replace with a value of your choice
# Enter your code below
x
y
nIn []:
cups =15000 # This variable changes from week to week, depending partly on
stock =5 # This variable changes from week to week, depending on past c
bags =40 # This variable represents the number of bags of coffee beans
# could change if another supplier of coffee is chosen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!