
Lesson 2-5: Case Study Maintenance
38 | Chapter 2
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Compile and run program Chessboard (chessboard.cpp), the case study program
from Chapter 2.
Exercise 2: Change the program so that a dollar sign is used rather than an asterisk to build the
board. Compile and run the program. Which do you think is clearer?
Exercise 3: Change the program so that only the outline of each square is shown. Here is an
example row:
$$$$$$$$ $$$$$$$$ $$$$$$$$ $$$$$$$$
$ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $
$$$$$$$$ $$$$$$$$ $$$$$$$$ $$$$$$$$ ...