09-08 Class Notes CS 107

09-08 Class Notes CS 107 - 09-08 Class Notes CS 107...

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

View Full Document Right Arrow Icon
Remember Program #2 is due by noon on Friday. - Do pay attention to the sample program linked to within the program description - See also the sample program link given on the Blackboard discussion board for program 1, in the message entitled "Getting Started." - We're aiming at having program #1 graded by Friday (Rigel), and program #2 graded by next Friday (Shuyang) - Announcements: Questions? Last Time: if-else-if, comparison operators, indentation Finishing up the if statement: dangling else, short-circuit evaluation The switch statement, which is similar to multiple if-else statements while loops for loops Looping (apologies for already having you use this in lab this week) Today: Dangling else, short-circuit evaluation 09-08 Class Notes CS 107 Wednesday, September 08, 2010 12:26 PM 107 Fall 2010 Page 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
The switch statement, which is similar to multiple if-else statements: The switch statement Consider the following program segment to do weight conversion, depending on which planet you are on: /* Illustrating the switch statement
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

09-08 Class Notes CS 107 - 09-08 Class Notes CS 107...

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

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