Unit 0-05

Learning Outcome

At the end of this lesson, you will be able to:

  • do basic mathematics in programs

Review

  • review "Hello, World! International"
  • review the importance of style in writing code

Lesson

  • go over "Introduction", Chapter 1
    • Computer Based Problem Solving
    • download to iBooks, so you always have it
  • go over Style Guide, again

Activity

  • demo of Calculations program
  • when you get an error, let the IDE help you correct the mistake
  • also, note that exponents (ex 3^2) do not work like in math class
    • you will need to use pow(a,b)

Daily Assignment

  • create the Area and Perimeter program

Extra

  • nil

Code Links

Next Lesson Prep

  • read "Steps in Problem Solving", Chapter 2
    • Computer Based Problem Solving
    • read up to and including "Folding Paper" example