COMP 125: Introductory Programming
Final Examination
Test Date: Monday, May 10, 1999
Instructions: Please do either Form A or Form B of this examination -- you must
answer all
questions for the
form you choose.
Form A
Please complete the following exercises from the text book:
- (20 credits): p. 377, #8
- (30 credits): p. 319, #14
- (50 credits): p. 381, #20 (two data files will
be provided: paysched.txt and
empscnt.txt)
Form B
- (30 credits): Write a short program (or procedure) to
exchange the values of three variables
a,
b and
c so that
a has
b's value,
b has
c's value and
c has
a's value.
- (70 credits): Rewrite programming lab assignment #9
to
include the names of the departure and destination cities in the output. Hint:
There is an easy way to do this using a defined property of a combo box and there
is a hard way to do this which may involve setting up and
using additional arrays.
Do you have any questions, comments or suggestions? If so, please e-mail
them to me at
jcorlis@luc.edu.
To return to the COMP 125 web site, click
here.
To go to my home page, click
here.
To go to the home page of Loyola University Chicago, click
here.
Jack Corliss
Mathematical and Computer Sciences
Loyola University Chicago
Revised: 9 May 1999