Computation rests on two foundations: memory and control. Having developed a memory model in Chapter 1, this chapter extends the computational model with control statements. Such statements direct the flow of computation: the if/else construct enables conditional computation; and the while and for constructs facilitate iterative computation. Function calls, when combined with conditional statements, can yield even more complex control in the form of recursion.
KeywordsUnit Test Conditional Statement Naming Convention Successful Execution Helper Function
Unable to display preview. Download preview PDF.