Lecture Notes IST-1551
06 Dec 2024
1. Introduction
2. Data and Variables
3. Methods/Functions
4. Selection/Conditional
5. Iteration:
for
Loops
6. Iteration: While Loops
6.1. While-Statements
6.2. While Examples
6.3. Do-While Loops
6.4. Greatest Common Divisor
6.5. Lab:
while
Loops
6.6. Chapter Review
7. Files & Paths
8. Arrays
9. Collections
10. Classes
11. Object-Oriented Programming
12. Data Structure
13. Selected Topics
14. Appendix
Lecture Notes IST-1551
6.
Iteration: While Loops
View page source
6.
Iteration: While Loops
6.1. While-Statements
6.1.1. Infinite loops
6.2. While Examples
6.2.1. String Operations
6.2.2. Long Term Investment
6.3. Do-While Loops
6.3.1.
do-while
Example: Right Triangle
6.4. Greatest Common Divisor
6.4.1. Euclid’s Algorithm
6.4.2. GCD “Brute Force” Method
6.4.3. GCD Subtraction Method
6.4.4. GCD Remainder Loop
6.4.5. Preview: Recursive GCD
6.5. Lab:
while
Loops
6.5.1. Easy
while
6.5.2. Number in Range [1…100]
6.5.3. Number Guessing Game
6.5.4. Sum To
n
6.5.5. Loan Table
6.6. Chapter Review