CS 1620 Solution # 7 Spring 2001


  1. sinetable.cc -- print the table of values for the sine function.
  2. minmax.cc -- use a function and pas by reference to find the minimum, maximum and average.
  3. answers to question 2 page 370.
  4. yesterday.cc -- print yesterday's day name, given today's day name. (This version uses switch statements for all functions.
  5. Alternate yesterday1.cc -- print yesterday's day name, given today's day name. This version uses the cast operator.

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