Question: c++ 3. (25%) Program Understanding and Modification The following program intends to output the diagram to Console window as shown in the Expectation box below.
3. (25%) Program Understanding and Modification The following program intends to output the diagram to Console window as shown in the "Expectation" box below. However, it contains bugs as illustrated by Example 1. Correct and explain the program so that the program can output correctly, Hint: There are four small mistakes in the program, First bug It misses to show the first line of the expected diagram with one character. Second bug: It wrongly shows an asterisk (*) instead of a space. Third bug: In the correct (expected) output, the last row does not have any space before the letter A. Fourth bug: If you have successfully correct the above three bugs, you will observe that the diagram is not symmetric. See Example 2 for reference. include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
