Friday, September 29, 2006

 

Turing, Ch. 5: Variables and Constants

The topic of variables and constants is not difficult, but it's important to learn it well in order to continue with programming.
  1. Become familiar with how to declare a variable using var. For example:
    var maxTempDay1 : real

  2. Know the three data types -- int, real, string.
  3. Try to think of a variable as a named memory location, that is, an area of RAM the computer gives a name and waits for it to be given a value.


Work on Chapter 5 the same way you worked on Chapter 4:
        • read the chapter carefully
        • make notes from the question sheet in the Pickup Folder
        • try the programs as you read
        • do the exercises at the end of the chapter



<< Home

This page is powered by Blogger. Isn't yours?