>>    




Homework Assignment

CS 121 (CS1)

Homework 6   Due Monday, February 24, 2014
  1. Text questions on selection

      Selection, Exercises 2[H], 4, 8

      Notes:

      • Problem 2 example: For

            x < y
        
        a "logical opposite" would be
            x >= y
        
        Here, we're assuming that x and y are both numbers (or, they could both be strings), and we're trying to describe the opposite relationship between them.

  2. Predicates [hc]

      Conditional questions, 1ac

  3. Accumulators

      Function questions 2c

  4. using if and guards [hc]

      Conditional questions, 2abc

  5. Reading