December 2013
Beginner
464 pages
13h 46m
English
What is a program? Hey, wait a minute, I thought we answered that in chapter 1! We said a program was a series of instructions to the computer.
Well, that’s true. But almost all programs that do anything useful or fun have some other qualities:
Your first program (listing 1.1) didn’t have any input or processing. That’s one reason why it wasn’t very interesting. The output was the messages the program printed on the screen.
Your second program, the number-guessing game (listing 1.2), had all three of the basic elements:
Read now
Unlock full access