Name: ____________________________________________________ Alpha:
_____________Section: ________
Describe help received: _________________________________________________________________
See the bottom for how to submit your work.
Due: Before 0800 on next class day
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.
Submit to the submission server (due: 0800 on the next class day)
~/bin/submit -c=IC210 -p=hw13 hw.cppBring to class