Lecture 5 Outline (October 5, 2015)

Reading: text §4


  1. Greetings and felicitations!
    1. Change to office hours for today: the 11:00am–11:50am office hour will not be held, but I’ll hold an office hour today at 3:10–4:00pm
  2. Writing a program: cents to coins
    1. Show converting statements to program
    2. Need for error checking
  3. Relations and conditionals
    1. <, <=, >, >=, ==, !=
    2. &&, ||, !
    3. Use in a while loop
  4. Error handling
    1. if statement
    2. Back to program
  5. Usability: prompt for amount


You can also obtain a PDF version of this. Version of October 5, 2015 at 5:40AM