Yorkville High School Computer Science Department
Yorkville High School Computer Science Department on Facebook  Yorkville High School Computer Science Department Twitter Feed  Yorkville High School Computer Science Department on Instagram

Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

Computer Programming I :: Projects :: My Robot

Problem

ASCII Robot

You are going to design a program that will create a robot using ASCII art. The robot doesn't have to be too complicated, but there should be a way to make it taller or shorter by increasing or decreasing segment of the robot. In the robot pictured to the right, you can increase or decrease the leg segments.

Specific Requirements

  1. Use "\n" to create a new line at the end of each line.
  2. Use a count variable to keep track of the segment.
  3. Use a while loop to traverse the repeated segments.
  4. Clear the label before the loop by setting the text equal to "", which is known as the empty string.
  5. You can find the value of a slider control in the code by using the name of the slider followed by .Value.
  6. Rename the form and all controls on the form using a three-letter prefix. A slider control should start with "sld."
  7. Add a comment header following class guidelines.

Project Extension

1. Allow the user to choose the color of the robot.

 

Yorkville High School Computer Science Department on Facebook Yorkville High School Computer Science Department Twitter Feed Yorkville High School Computer Science Department on Instagram