CS 101 Spring 2005

Assignment 6 (100 Points)

Due: Fri. Apr 15th 2005

 

 

Write a program using for loops that display output similar to

 

 

 

 

 

 

 

*

 

 

 

 

 

*

*

 

 

 

 

*

*

*

 

 

 

*

*

*

*

 

 

*

*

*

*

*

 

*

*

*

*

*

*

 

·       The above output contains 6 lines. You need to accept the number of lines from the user using an InputBox and display the output accordingly.

·       If the user enters a number less than 0 or greater than 100, you need to display an error message using a MessageBox

 

Extra Credit (10 Points)

 

Generate an output similar to

 

+

+

+

+

+

+

*

+

+

+

+

+

*

*

+

+

+

+

*

*

*

+

+

+

*

*

*

*

+

+

*

*

*

*

*

+

*

*

*

*

*

*

 

 

Tip:

See problem 35 on page 294. Answer at back of the book