09-02 Class Notes CS 107

09-02 Class Notes CS 107 - 09-02 Class Notes CS 107 Friday,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
char firstInitial = 'D'; Remember: - The link for "Lecture Notes" on the course web site has changed. - Note the links on the main page for the ASCII table and the Precedence table Announcements: Questions? - Review of Program #2; Review of "planet weights" sample programs; arithmetic operators Last Time: • Arithmetic operators: precedence We can use calculations using variables as part of the comparisons Variations, indentation, comparison ( aka relational ) operators Common problems Boolean Operators (and the equivalent without them!) Short circuit evaluation Making decisions with the if statement: Today: Last time at the end of class we discussed the two different flavors of if statements in Scratch, the if statement and the if-else statement. IF we only had the if statement and did not have the if-else statement, could we still write every possible program? Press A for yes. Press B for no. Today's quiz:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

09-02 Class Notes CS 107 - 09-02 Class Notes CS 107 Friday,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online