Home
Research Projects
Classes GEOS 293/393 Hawaii Field Course GEOS 436/636 Beyond the Mouse GEOS 602 Geophysical Fields GEOS 620 Geodynamics GEOS 655 Tectonic Geodesy GEOS 692 Geophys. Seminar
Current & Past Students
Student Opportunities
Curriculum Vitae
Recent Publications
Info for Surveyors
Personal Info

Climb higher, beyond the mouse...


Beyond the Mouse Lecture 4: Control Structures

September 19

Instructor: Jeff Freymueller

x7286 Elvey 413B jfreymueller@alaska.edu

TA: 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

Control Structures


Dr. Jeffrey T. Freymueller
Professor of Geophysics
Geophysical Institute
University of Alaska, Fairbanks
Fairbanks, AK 99775-7320

jfreymueller -at- alaska.edu
Phone 907-474-7286
Fax 907-474-7290
Office 413B Elvey