
Prelab Activities
Review
Chapter 4 contains a great deal of new material: reading data from the keyboard,
reading data from a file, creating a file, and learning a methodology for writing
solutions to problems. Mastering these concepts here, before you go on to the next
chapter, will save you much grief later. We promise!
Input Streams
There are four ways that a value can be stored in a place in memory. You have already
seen two methods in Chapter 2: A value can be stored by the compiler as the result of
a constant declaration, or it can be stored as the result of an assignment statement.
Chapter 4 introduces a third way: A value can be read into the ...