YCP Logo Lab 11: Draw a rectangle

Due: Monday, Sept 22nd by 11:59 PM

Getting Started

If you have a solution open in Visual Studio, close it (File->Close Solution).

Download CS200_Lab11.zip. Import it into Visual Studio (File->Import...).

Add your code to the source file called Rectangle.c.

Your Task

Write a program to prompt the user for two integers representing a number of rows and number of columns. Then, print rows of asterisk ("*") characters forming a rectangle of the size requested by the user.

Example run (user input in bold):

Number of rows: 5
Number of columns: 25
*************************
*************************
*************************
*************************
*************************

Hints

Use a nested pair of loops. The outer loop generates all of the rows of the rectangle. The inner loop generates a single row of the rectangle.

Submit

When you are done, choose Tools->Submit to submit your completed lab to the server. You will need to enter your Marmoset username and password.

If the Tools->Submit option does not work, create a zip file containing the files in your project, and upload it to the submission server as lab11. The server URL is

https://camel.ycp.edu:8443/