CS 1620 Solution # 4 Spring 2001


  1. answers -- answers to textbook questions.
  2. letter.cc -- program to print a letter.
  3. letter1.cc -- Alternate program to print a letter. This one passes the name as a parameter to the statement function.
  4. arithmetic.cc -- program to do simple arithmetic.
  5. arithmetic2.cc -- Alternate program to do simple arithmetic. This version uses the "fabs" function so the difference is always positive and the order of the numbers is not important
  6. payment.cc -- program to calculate a monthly loan payment.

Solution List | Prev | Next | Computer Science 1620
Department of Mathematics & Computer Science
University of Lethbridge Home Page