Question: Could someone show me how a problem statement for this is made? and how many inputs/outputs would there be? weight object 1 weigh object 2
Could someone show me how a problem statement for this is made? and how many inputs/outputs would there be?
weight object 1
weigh object 2
if object 1 is lighter than object 2 otherwise:
keep object 2 tray 1, set aside object 1
weight object 3
weigh object 4
if object 3 is lighter than object 4:
keep object 3 in tray 2, set aside object 4 otherwise:
keep object 4 in tray 2, set aside object 3 if tray 1 object is lighter than tray 2 obkect keep tray 1 object, set aside tray 2 object otherwise: keep tray 2 object, set aside tray one object
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
