05 Graphics Programs

Use one form to provide the following programs. Use a file menu to run the form. The form should be cleared before additional data is written to the form. Save the form as 05_xxx_gra where xxx is your initials.

 

1. Draw a house or other figure that uses at least four rectangles or circles. Paint different sections of your picture with different colors.

2. Write a program to draw your initials with large block letters and shade each letter. Imagine what your initials would appear like on a large message board. You may not use the drawwidth command to enlarge lines. You may use rectangles, circles and lines with fill commands.

3. Voters were asked their favorite day of the week. Results were as follows: Sunday 20%, Monday 5%, Tuesday 10%, Wednesday 12%, Thursday 14%, Friday 16%, Saturday 23%. Write a program that draws a bar graph of the results with the bar height showing the percentage. Label the the top of each bar with the percentage. Label the bottom of each bar with the day name.

4. Draw a 'Chess' board pattern in a picture box. The board consists of eight squares on each side with alternating colors. Click the mouse in one of the squares and report the position of the click as 'You clicked in row 3, column 4.' where row 1 column 1 is the upper left corner. The image should appear similar to the one below.

 

Visual Basic Assignment Page

 
51902

 

 
© 2004-2008, Jerel L. Welker
Page Updated: January 15, 2009