Question: 3. (8 points) Write a function that takes two integer parameters (n, m) (which you can assume to be positive) and draws a (hollow) rectangle

 3. (8 points) Write a function that takes two integer parameters

3. (8 points) Write a function that takes two integer parameters (n, m) (which you can assume to be positive) and draws a (hollow) rectangle of characters to stdout. E.g. on input (4, 7), the output would look like this: ak IMPORTANT: note that the rows have spaces between each star to account for the fact that terminal cells are usually taller than they are wide. Consecutive characters would look like*******, but you want *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!