Introduction to Computer Science:
Quiz 5
    Sewickley Academy, 2000-2001

See Course Home Page.  Also, see the Solutions to Quiz 4.

This is a programming quiz.  You must use Visual C++ for this quiz.

1. Write a program with the following behavior:

Enter 2 numbers: 8 14

8 + 14 = 22

8 * 14 = 112

The product is greater than the sum.

(Note that your program should also work reasonably when the product is less than, and also equal to, the sum.)

2. Write a program with the following behavior:

Enter 3 numbers: 6 8 4

The max is: 8

The min is: 4

The average is: 6

The range is: 4

(Note that the range is the distance from the min to the max.)

See Course Home Page.