Lecture 8. AMES 5, Monday 12 Oct. 1998
From the course outline we see the reading assignment this week is Chapter 4 on Program Control Statements. You need to turn in modified versions of all the example programs in this chapter, and do Practice Programs 4.1 and 4.2.
You have already seen some examples of branching and looping operations in programming, which occur when decisions are made based on logical expressions, and when repeated actions are required. Any computer program consists of sequential, loop, and branch structures. Chapter 4 focuses on loops and branches. Some of the concepts introduced are:
All of these concepts are illustrated by the Example Programs which you will modify in your homework.
Final Project: You should have begun thinking about your final project. Write pseudo code statements at the beginning of the program to outline for yourself how you plan to proceed and to document for readers (and TAs) what its purpose is and how it is organized. Do this before you start putting in code, and revise as necessary if the code doesn't perform as you first expected.
Lecture 9. AMES 5, Wed. 14 Oct. 1998
David Tenebaum will give the lecture today while I am giving a seminar at the University of Southern California on "The Fluid Mechanics of Dark Matter in the Early Universe".
Lecture 10. AMES 5, Friday, 16 Oct. 1998
Work through and modify all the Example Programs of Chapter 4. Your modifications should illustrate an understanding of how the program works and what it is attempting to illustrate. Bring your questions about particular Example Programs to class if you want to see how I did it in my version of the homework. For example, here is my version of MEX5-15, from next week's homework. From this week's homework, see MEX04-14 about the SELECT CASE structure. Work as many unassigned Practice Programs as you can find time for, for example Practice Program PP4.3. You can select the text of the program from this webpage version and paste it into True Basic, although you will need to edit out the extra lines before it will run.
If you are working ahead, you might be interested in Practice Program PP5.3, where dates are entered into the program of PP5.2 by means of a DATA statement.