Question: Write a Python program that will read 5 orders with the corresponding weights. For each order it will need a container which has weight 0.5kg

Write a Python program that will read 5 orders with the corresponding weights. For each order it will need a container which has weight 0.5kg (need to add this weight for each order by your program). Take the order one by one and assign them to a box which can only take up to 15kg. You can assume that all the numbers are positive numbers at most 14.5. Output of the program is just like the picture showsWrite a Python program that will read 5 orders with the corresponding

Example: 10 Order 1 Box 1 3 Order 2 Box 1 Order 3 Box 2 1 order 4 Box 2 Order 5 Box 2

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 Databases Questions!