Question: (***Use PYTHON ONLY***) Write a code in which the user can define the number of items, price and weight of each item, the capacity of
(***Use PYTHON ONLY***)
Write a code in which the user can define the number of items, price and weight of each item, the capacity of the backpack. The program should output the order number of items with should be selected for maximum benefit. Refer to the rubric below and answer accordingly for a thumb's up. 
Ratings Pts Some Rubric (2) Criteria Knapsack Problem write the code in which the user can define the number of items, price and weight of each item, the capacity of the backpack. The program should output the order number of items with should be selected for maximum benefit. 20 to >10.0 pts Full Marks complete and working correctly 10 to >0.0 pts O pts Partial Credit No Not complete Marks but in the Missing, right track Not compile- able, In wrong track 20 pts Strategy The brute force strategy has been used O pts 20 to >10.0 pts Full Marks All possibilities has been checked 10 to >0.0 pts Partial Credit in the right track but not complete No Marks Missing, wrong strategy, Not compile- able 20 pts Total Points: 40
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
