Your task is to write a program that
(1) prompts the user for the number of work weeks availa...
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
Answers: 1
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
Mathematics, 14.07.2021 05:10
Chemistry, 14.07.2021 05:10
History, 14.07.2021 05:10
World Languages, 14.07.2021 05:10
Spanish, 14.07.2021 05:10
Mathematics, 14.07.2021 05:10
Mathematics, 14.07.2021 05:10
Chemistry, 14.07.2021 05:10
Mathematics, 14.07.2021 05:20
Spanish, 14.07.2021 05:20