Question: Write a C++ program called assignment.cpp. Your program should read the assignment costs of each person from a user and determine the best assignment. In
Write a C++ program called assignment.cpp. Your program should read the assignment costs of each person from a user and determine the best assignment. In the program, you can assume that the number of all jobs is less than 15.
Sample Program:
$ g++ -o assignment assignment.cpp
$ ./assignment
Number of jobs: 2
Enter assignment costs of 2 persons:
Person 1: 2 5
Person 2: 4 6
Permutation 1: <1, 2> => total cost: 8
Permutation 2: <2, 1> => total cost: 9
Solution: <1, 2> => total cost: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
