Name: ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
in.txt to
out.txt except that point (2,3) is replaced with (0,0).
|
in.txt:
(1,2) (2,3) (2,1) (1,3) (10,1) (2,3)out.txt: (1,2) (0,0) (2,1) (1,3) (10,1) (0,0) |
* characters and the inside
should be empty (i.e., filled with spaces).
Your rectangle will have a certain height and width, as well as an offset which is a number of spaces to the left of the left side of your rectangle.
Here are some examples of how your program should work:
~$./hwEnter height (greater than 2):5Enter width (greater than 2):8Enter offset:3******** * * * * * * ******** ~$./hwEnter height (greater than 2):3Enter width (greater than 2):10Enter offset:7********** * * **********
In writing your program, use the idea of stepwise refinement that we talked about in class. You may assume that the height and width will always be at least 2.
~/bin/submit -c=IC210 -p=hw13 hw.cpp