CS 202 Fall 2013  >  In-Class Challenge for Thursday, September 19, 2013

CS 202 Fall 2013
In-Class Challenge for Thursday, September 19, 2013

This challenge deals with a C++ class StarRect. It is initially specified as follows. What you are actually to do is found below.

Class StarRect Initial Specification

What to Do

Do as many of the following as you can before class ends. After each, please show me your work.

  1. Write minimal versions of files starrect.h and starrect.cpp that compile with the test program test_starrect.cpp.
  2. Implement class StarRect as above, so that all tests pass.
  3. Add an additional option to the class: allow a character other than “*” to be used in the rectangle. The resulting class should still compile with the test program and pass all tests.


CS 202 Fall 2013: In-Class Challenge for Thursday, September 19, 2013 / Updated: 19 Sep 2013 / Glenn G. Chappell