 # Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

## Computer Programming I :: Projects :: Times Table

### Problem

Design a program that allows the user to input a starting number, an ending number, and a multiplier. The program will then count by ones from the start number to the end number, multiplying each one of the numbers by the multiplier. For example, if your starting number was 2, your ending number was 4, and your multiplier was 5 the result would appear in a ListBox like this:

```2 * 5 = 10
3 * 5 = 15
4 * 5 = 20```

### Specific Requirements

1. Write the steps of your algorithm and turn them in along with your finished program.
2. Use a ListBox to display the results.
3. Use labels to describe what should be in each TextBox.
4. Use a for loop to print the results to the ListBox.
5. The results should look like the following: 2 * 5 = 10. They should NOT simply contain the answer.
6. All form components should clear whenever you start over.
7. Determine a good name for each variable following the rules.
8. Rename the form and all controls on the form using a three-letter prefix.
9. Add a comment header following class guidelines.
10. Add color, font styles, and at least one picture to make your program look nice.

### Project Extension

Create four buttons that will change the operation from among multiplication, addition, subtration, and division. Make sure the multiplier label changes to addend, subtrahend, or divisor depending on the operation, and there should only be one button used to populate the ListBox. Do NOT use multiple buttons and simply change their visibility.

### Tips

• You will need to use concatenating (joining) strings to get the output to look correct.
• To convert a string to an integer, put the string inside the parenthesis of Convert.ToInt32(). For example, if you had a string called start you would put Convert.ToInt32(start).