Gregory M. Kapfhammer
Course Web Site
Details in the Textbook
Alternatives similar to CSS programming!
Allows us to implement conditional logic
if (age > 50)
if (hoursOfDay > 4 && hoursOfDay < 12)
There is an else component for a backup plan
Any questions about the use of this construct?
Review Section 8.5 for more details
Perform some action repeatedly
What are the similarities and differences?
When would you decide to use a certain construct?
Loops can tax the resources of a computer
Arrays allow you to store a fixed number of variables
All values in the array are normally of the same type
Indexing an array can lead to exception cases