Class 26 — October 23

What’s its function

Another haiku — Is needed for today’ class — Am I up for it


Look both ways


Agenda


Paired programming


Top-down design and bottom-up implementation


Una problème de la journée


Example

  • Function parameter x is a numeric value. The function returns integer -1, 0, or 1 depending respectively whether x is negative, zero, or positive. The function does not print any output.
  • If the length of string s is odd, the function returns the middle character of s; otherwise, the function returns the two middle characters of s. The function does not print any output.

To do