>>     < >




In-class notes for 03/14/2014

CS 121B (CS1), Spring 2014

Submitted questions on assignments and technology

  • HW13B 6b

    • See the (newly added) illustration to understand the arguments

    • Two stages: check the arguments; and create/fill the cropped image

    • Solution

  • HW14D 12f

  • HW14B 2j

    • Need 3 accumulators: one for element count; one for valid-response count; and one for valid-response sum

    • Need an if inside of loop to update 2 accumulators when a valid response is found

    • Be sure to print before return

    • Solution

    • Solution using predicate

Upcoming

Recursion

Submitted questions on readings




< >