7. Numbers

Important ideas:

  • Inexact numbers and check-within
  • build3-image or build-image
  • map3-image or map-image
  • (random 5) gives 0, 1, 2, 3, or 4.
  • How to make a gradient, changing color smoothly from pink to light blue.
  • 7. Summary
  • Everything you should know from Chapter 7.

  • Exercises 1
  • Exercises.

  • Exercises 2
  • Exercises working with number functions.

  • Exercises 3
  • More exercises writing functions.

  • More Exercises 4
  • Planning and testing, not writing functions.

  • 7. Review 1
  • Review of map-image, build-image, randomness.

  • 7. Numbers Quiz
  • A reasonable quiz, maybe one half question too long. Extra credit for all homework being turned in.

  • Max and min slides
  • Slideshow of exercises to learn max, min, abs, and random.

  • Randomness
  • Making random numbers. Testing functions that use random numbers.