This website is preserved for historical and scholarly reference and is no longer actively maintained.

QUIZ 8

September 8, 1997

#1. Given the problem statement: "Write a program to read in the weight (in pounds) of an object and compute and print its weight in kilograms. (one pound is equal to 0.453592 kilograms)" write the three logical steps we used in class to describe how to solve this problem

#2. The Java statement

specifies the coordinates of the ______ ______ corner to be ( __, __ ) and the coordinates of the ______ ______ corner to be ( __, __ ).

#3. After execution of the Java code segment

the coordinates of Point q are ( __, __ ).

#4. After execution of the Java code segment

the coordinates of p are ( __, __ ) and the coordinates of q are ( __, __ ).

#5. Draw a picture (in the style of the text) to illustrate the result of the following:

Return to Eleanor Hare's home page.

Return to Department of Computer Science Home page.