| CE EN 270 - Virtual Lecture | |
| Norm Jones | Brigham Young University |
| Introduction to Loops | |
Instructions: Click on each of the links below, in order. You will need a Shockwave-enabled browser in order to view the lectures. As you view the lecture, use the controls at the bottom of the image to pause, stop, fast-forward, and rewind the lecture. These lectures contain audio. If you are viewing the lectures in a CAEDM lab, you will need to use a set of headphones to avoid disturbing your fellow students. |
|
Sections
|
Description |
| Do Loops | Introduction to the four different kinds of Do Loops. |
| In-class task #1, part 1: Finding the first non-zero cell in a table of concentrations vs. distance | |
| Task #1-2 | In-class task #1, part 2: Finding the last non-zero cell in the table |
| Task #1-3 | In-class task #1, part 3: Finding the maximum non-zero cell in the table |
| Task #1-4 | In-class task #1, part 4: Finding the first non-zero cell in the table using the Exit Do statement |
| For Loops | Introduction to the two different kinds of For Loops. |
| Task #1-5 | In-class task #1, part 5: Finding the maximum non-zero cell in the table using a For i=... Loop. |
| Task #2 | In-class task #2: Writing a custom function to compute the factorial of a number using a For i=... Loop. |