These are my solutions to practice midterm exam A. Below are the C++ source files for Problems 2, 3, 4, and 5.
You can just compile and run the code for problem 1.