Need help with the following assignment:
Details
Your program should be called “pa5” and should operate asfollows:
- pa5 expects a single argument, which is the weight capacity ofthe knapsack e.g.
pa5 15 would run your program for a bag with a weight capacity of15;
- your program should read the fileknapsack.data from the current directory. Thisfile should contain a set of weight/value/name triples, such as thefollowing:
1 10 mouse
2 25 cellphone
5 40 tablet
7 100 laptop
In the above file, there are fouritems: a mouse with a weight of 1 and value of 10; a cellphone witha weight of 2 and value of 25; and so on.
- After
OR
PayPal Gateway not configured
ORPayPal Gateway not configured