Solution for Project 2 Problem 1:

Drawing a hollow rectangle.

We have discussed the solution in the class a couple of times. But some of you still have problems with the printing part of the problem.
The input output has to be done in a similar fashion as discussed for the in-class exercise.

The printing part

<length_counter>=1
While (<length_counter> <= <length>)
         <width_counter> = 1
         if (<length_counter> = 1 or <length_counter> = <length>)
                  While (<width_counter> <= <width>)
                           Display "*"
                           <width_counter> = <width_counter> + 1
                   End_While
         else
                  While (<width_counter> <= <width>)
                           if (<width_counter> =1 or <width_counter> = <width>)
                                    Display "*"
                           else
                                     Display " "                           (comment -- displays a space)
                           End_if
                            <width_counter> = <width_counter> + 1
                   End_While
          End_if
          <length_counter> = <length_counter> +1
          Skip a line
End_While