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
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
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!
Other questions asked by students
StudyZin's Question Purchase
1 Answer
$0.99
(Save $1 )
One time Pay
- No Ads
- Answer to 1 Question
- Get free Zin AI - 50 Thousand Words per Month
Best
Unlimited
$4.99*
(Save $5 )
Billed Monthly
- No Ads
- Answers to Unlimited Questions
- Get free Zin AI - 3 Million Words per Month
*First month only
Free
$0
- Get this answer for free!
- Sign up now to unlock the answer instantly
You can see the logs in the Dashboard.