| [SOLVED] Can anybody help me with this Program in Visual Basic, please !!? Part #1:
ASCII art has been around for quite some time. In the 60s and 70s, programmers of mainframe computers used the computers during downtime to generate posters and pictures. The task is to create a program which draws a simple shape-- triangle.
*
**
***
****
*****
****
***
**
*
REQUIREMENTS: Use loop(s) to draw the shape.
Print one character at the time. One character per loop iteration.
Receive the size of the triangle from the the user through a texbox. ( Valid user input is 5,6,7,8 )
The number received will be the largest horizontal point in the triangle.
The program should be able to create different sizes of triangles, based upon user input.
Provide error cheking to make sure the user input is in the range of 5 to 8.
Do not use any arrays in this program. Use modular program design. Use procedures and/or fuctions for all modules and incorporate "pass by reference" between modules. |