Computer Programming I :: Projects :: Times Table
Department Connection: Math
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
- Write the steps of your algorithm and turn them in along with your finished program.
- Use a ListBox to display the results.
- Use labels to describe what should be in each TextBox.
- Use a for loop to print the results to the ListBox.
- The results should look like the following: 2 * 5 = 10. They should NOT simply contain the answer.
- All form components should clear whenever you start over.
- Determine a good name for each variable following the rules.
- Rename the form and all controls on the form using a three-letter prefix.
- Add a comment header following class guidelines.
- 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).