{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture notes Oct 9-11 - Show flow chart(Figure 5.6 Explain...

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

View Full Document Right Arrow Icon
CPSC 1301 – Computer Science 1 lecture October 9 – o Review Midterm Exam o Answer student questions about Midterm, etc. o Introduce Chapter 5 – Conditionals and Loops o 5.1 Boolean Expressions Define flow of control Define conditional statement (selection statement) : IF, IF-ELSE, SWITCH Define Boolean expression (evaluates to true/false) Give example of Boolean expressions and example of if statement Define equality operators (==, !=) Give examples Define relational operators ( <, >, <=, >=) Give examples Define logical operators (!, &&, ||) Use truth tables to explain logical operators Give examples o 5.2 The if Statement Give example of if statement
Background image of page 1

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

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Show flow chart (Figure 5.6) Explain if-else statement Give examples Review program 5.2 Review 5.3, 5.4 Explain Block statement Give examples Review 5.5 Discuss Conditional Operator (don’t spend much time on this) Explain Nested if Statement Give examples Review 5.6 October 11 – o Review answers to questions from Monday o Continue Chapter 5 – Conditionals and Loops o 5.3 Comparing Data o Discuss Comparing Floats o Discuss Comparing Characters o Discuss Comparing Objects o 5.4 Switch Statement o Explain Switch statement o Explain break statement o Examples o Review 5.7...
View Full Document

{[ snackBarMessage ]}