Copyright © 2005 Suradet Jitprapaikulsarn
สงวนลิขสิทธิ์ 2548 สุรเดช จิตประไพกุลศาล

Homework 9 (Due 22 August 2005)

  1. Write a function, sumEveryOther, to calculate the sum of every other number in a list of numbers.
  2. Write a function, firstPosition, to find the position of the first occurrence of a number in a list of numbers.
  3. Write a function, allPosition, to get the list of positions of a number in a list of numbers.