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 bags of coffee beans, the team at Smokey's Cafe is able to serve
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 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 twoweek stock
If there are not enough bags of coffee for the coming week, order the amount
required to complete a twoweek 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 :
numtrees # Replace with a value of your choice.
# Enter your code belowIn :
bloodtypereceiver A # Replace with a value of your choice
bloodtypedonor B # Replace with a value of your choice
# Enter your code below
x
y
nIn :
cups # This variable changes from week to week, depending partly on
stock # This variable changes from week to week, depending on past c
bags # 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
