Please correct the assignment you were helping me on with C++. It is only 50% correct. I have attached the incorrect parts.
I have the outputs of both programs. The one marked with a black border is the sample program that I have and displays the correct results.
The output that is marked with the red border is from the program you helped me with, but it is incorrect at parts:
Your program does not run test0 ; I get an error
for test3, all the results are incorrect, while test 1 and 2 need a few adjustments.