Question: Identify three structural improvements that could be made to the program. Explain why these are improvements. Implement the improvements. CONSTANTS Function square Characters forming one

Identify three structural improvements that could be made to the program. Explain why these are improvements. Implement the improvements.
Identify three structural improvements that could be made to the program. Explain
why these are improvements. Implement the improvements. CONSTANTS Function square Characters forming

CONSTANTS Function square Characters forming one line of a black Name Characters forming one line of a white square BLACK WHITE VARIABLES Description Data Type Name A row beginning with a white square whiteRow string A row beginning with a black square black Row string lfwe look carefullyat the chessboard, the algorithm jumps out at us. We to output five white five five whiteRows, five blackRows, five whiteRows, five blackRows, five whiteRows five blackRows. We can summarize this in our algorithm to output the five whiteRows and five blackRoe four times. Repeat four times Output five whiteRows Output five blackRows Chessboard program This program prints a chessboard pattern that is built up from basic strings of white and black characters. #include For cout, endl #include using namespace std; const string BLACK Define a line of a black square const string WHITE Define a line of a white square int main string white Row; A row beginning with a white square string blackRow A row beginning with a black square create a white-black row by concatenating the basic strings White Row WHITE BLACK WHITE BLACK WHITE BLACK WHITE BLACK; create a black-white row by concatenating the basic strings black Row BLACK WHITE BLACK WHITE BLACK WHITE BLACK WHITE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!