Hi guys,I've been having some problems with this one since I'm only a beginner.
There's a thief in the grocery store with a multiple boxes of fruits and vegetables.
Each boxs has a weight given in kilograms and the value per each kg of the item from that box.
The thief cannot carry more than m (variable) kilograms.
He doesn't have to take the whole box.He can as well take a smaller amount of fruits or vegetables from it.
What is the biggest profit that the thief can make in a given situation?
n- number of the boxes
x- weight
y- price of the items in the box per kg
m- number of kgs he is able to take out
I'm not really sure about the assign-s and the code.
Thanks in advance!