Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting An Introduction

Authors: Eddie McLaney, Peter Atrill

3rd Edition

0273688227, 978-0273688228

More Books

Students also viewed these Accounting questions

Question

Draw the shear and moment diagrams for thebeam. R

Answered: 1 week ago