Question: Your task is to write a program that: 1 ) Prompts the user for the number of work weeks available ( integer ) ; 2
Your task is to write a program that:
Prompts the user for the number of work weeks available integer;
Prompts the user for the name of the input file string;
Prompts the user for the name of the output file string;
Reads the available projects from the input file;
Solves the corresponding knapsack problem, without repetition of items; and
Writes to the output file a summary of the results, including the expected profit and a list of the best
projects for the company to undertake.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
