Homework Assignment
CS 121 (CS1)
- Homework 6 Due Monday, February 24, 2014
-
-
Text questions on selection
-
Selection, Exercises 2[H], 4, 8
-
Problem 2 example: For
x < y
a "logical opposite" would bex >= y
Here, we're assuming thatx
andy
are both numbers (or, they could both be strings), and we're trying to describe the opposite relationship between them.
Notes:
-
-
Predicates [hc]
-
Accumulators
-
using if and guards [hc]
Conditional questions, 2abc
-
Reading
--
Read online text: More About Iteration.
submit at least one reading question by 9am before the next class meeting.
-