
Ross Sheppard High School
Computer Programming 20
Student Learning Guide
Controlling Program Flow with Looping Structures
The Loop Program
| When you have finished this project, you will be able to: | |
| create a Do . . . Loop | |
| describe how a Do . . . Loop works and when it should be used | |
| create a For . . . Next loop | |
| describe how a For . . . Next loop works and when it should be used |
| Object | Property | Setting |
| Form | Name | frmLoop |
| Caption | The Loop Program | |
| TextBox | Name | txtInteger |
| Text | No text | |
| Label | Name | lblEnterInteger |
| Caption | Enter an integer: | |
| Label | Name | lblPrimeResult |
| Command Button | Name | btnTest |
| Caption | Check Test | |
| Command Button | Name | btnExit |
| Caption | Exit |

| Object | Property | Setting |
| TextBox | Name | txtNumber |
| Text | No text | |
| Label | Name | lblEnterNumber |
| Caption | Enter a number: | |
| Label | Name | lblFactorialMessage |
| Label | Name | lblFactorial |
| Command Button | Name | btnComputeFactorial |
| Caption | Computer Factorial |
