subject
Engineering, 18.02.2020 00:00 exoticbunnylover123

Your task is to write a program that
(1) prompts the user for the number of work weeks available (an integer);
(2) prompts the user for the names of the input and output files (strings);
(3) reads the available projects from the input file;
(4) solves the corresponding knapsack problem, without repetition of items; and
(5) 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.

Here is a sample session with the program:
Enter the number of available employee work weeks: 10
Enter the name of input file: KnapsackData1.txt
Enter the name of output file: Output1.txt

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
You know the right answer?
Your task is to write a program that
(1) prompts the user for the number of work weeks availa...
Questions
question
Geography, 19.10.2019 23:30
question
Mathematics, 19.10.2019 23:30
Questions on the website: 13722363