Question: Please provide C code and algorithm. Will upvote for sure, please provide clear answer and working code with its output. The weights and values of

Please provide C code and algorithm. Will upvote for sure, please provide clear answer and working code with its output.
The weights and values of 3 divisible items are given in the table below. The capacity of the knapsack bag is 50. Find an optimal solution to maximize the value to weight ratio. 1 Item Weight Value 10 $60 2 20 $100 3. 30 $120 Note: In Fractional knapsack one can divide and add a fraction of an item in theknapsack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
