CS 1401, Quiz #4

Date: Monday, September 25, 2006
Name: ____________________________________________________________
Class section (9:30 am or 11:30 am): _______________________________

1. How did the invention of logarithms help computing?

2. For each of the following topics, write "yes" or "no" depending on whether this topic is covered in Chapter 5, the chapter that you were supposed to read before the class:

while loops


for loops

Graphical User Interfaces

3. Suppose that we have three numbers n1, n2, and n3. Write down a code that assigns, to the variable largest, the largest of these three numbers. Hint: no need to read anything or print anything; assume that the variables n1, n2, and n3 already contain the numbers.