CMSC 104, Spring 2007

Homework 2 - Basic Algorithms

Out: Thursday, February 22nd
Due: Before 11:59 PM on Thursday, February 29th
Note that late homeworks will NOT be accepted.

Objectives:

Assignment:

  • First solve each of the two problems shown below. (25 points each, so make sure you show your work, no matter how simple you think it is)

  • Then write an algorithm for each of these two problems in pseudocode.(25 points each)