Functional Problem Solving (CSC 151 2015F) : EBoards

CSC151.01 2015F, Class 23: Revisiting Lists


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

Other Good Things

Questions

Should #2 work on any function?

Yes, those were just examples.

Does our procedure *have* to bound the y values?

No. You can assume a 100x200 window.

What's the difference between left and column?

left represents the left edge of an area. It's a column, but columns can take on other values.

When I'm picking the random column and row, what range should I choose from?

For the column, it should be a number between left and left+width-1.

But random only gives me a value between 0 and n-1.

Think about how to transform one range to another. (Hint: Addition.)

Do I need to document the procedures in part 3?

Yes. But you can use just 4P's.

Lab