I need to implement fractional knapsack to solve this problem
Value($} 20 50 10 90 110 70 60
Weight(lb) 3 4 1 5 6 3 4
but I'm getting confusing in how fractional knapsack work , I understand how the knapsack only work. So , in my program when I enter for example the weight limit = 7
it's gave me 143
can you help me to understand how fractional knapsack work.
Thank you