Beyond the Mouse Lecture 4: Control Structures
September 19
Instructor: Jeff Freymueller
x7286 Elvey 413B jfreymueller@alaska.eduTA: Shanshan Li
Last Updated: September 12, 2017
Lecture notes are available for download.
How do we change the flow of a program based on certain conditions?
Usually* a higher level programming language comes with constructs to evaluate conditions, repeat things until
a certain condition is met, or repeat a statement list x
times. This lecture contains
basic logic [sic!], and definitions for flow control constructs in formal, Matlab, and C-Shell
language.
* Some computer languages have been constructed primarily for their amusement value
(see examples at: esolang).
Reading
You should have already read Chapter 2.7, 2.8, Chapter 5, Chapter 8.
Written exercise
Fill in the truth table exercise chart on page 15 of the lecture PDF. Due Thursday September 21.
LAB 04
Dr. Jeffrey T. Freymueller
Professor of Geophysics
Geophysical Institute
University of Alaska, Fairbanks
Fairbanks, AK 99775-7320