In-Class Lab 1

CS 220

Sept. 19, 1997

If you finish the first, move on to the others.

  1. Write a SAL program to read an integer, n, then read n integers and output the sum of the positive integers read.

  2. Write a SAL program which inputs three integers and outputs their median.

  3. Write a SAL program which calculates the average high and low temperatures for the month of February. The input is a high and a low temperature for each day of the month.



Thomas P. Kelliher
Thu Sep 18 20:28:30 EDT 1997
Tom Kelliher