head

|| Home || Syllabus || Calendar ||


Lab, Chapter 8

 

Name:  _________________________________________

 

Date:     _________________________________________

 

 

Exercise from Chapter 8

 

1. Complete Exercise 2. Butterfly Chase: _______________

 

 

 

 

Concept questions (Short answer)

 

2.  Give at least one significant difference between the way a Loop statement works and the way recursion works.

 

 

 

 

 

3. List two important components of a game program, as illustrated in the Horse Race example in the text.

 

 

 

 

 

4. It is possible for a recursive method to be infinite, rather than eventually ending. What needs to be done inside a recursive method to be sure it will eventually end?

 

 

 



gsb_foot