Question: Write a complete C++ program that solves the Missionaries and Cannibals problem. The user should be able to choose between running the program with 5

Write a complete C++ program that solves the Missionaries and Cannibals problem. The user should be able to choose between running the program with 5 missionaries and 5 cannibals or 3 of each. Additionally, the user should indicate the initial location of each (ie 5 of each, start with (2, 2, 0), in other word 3 of each are already on the other side with the boat to begin). The program should show the current location of each entity at each iteration 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
