A, B and C work together in a workshop. They produce 8, 10, and 12...

80.2K

Verified Solution

Question

Accounting

A, B and C work together in a workshop. They produce 8, 10, and 12 products each day
respectively. Their performances are independent of each other. None of them work on Sunday. A
does not work on Tuesday. B does not work on Wednesday. C does not work on Monday and
Saturday. When a shipment of a certain amount of products is notified, you need to calculate when
you can deliver it.
Therefore, you write a program in which the inputs are the amount of products and the start date
as day of the week, and the output is how many days it will take to finish the shipment. The
shipment is finished when the cumulative amount of products produced on the last day is larger
than or equal to the target. Days of the week (i.e. start_date) correspond to the integers 0, 1, 2, 3,
4, 5, 6.
def shipment_date(product_amount, start_date):
# your logic here
# return how many days it take to finish
return total_days

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students