IAT 167 Lecture Notes - Lecture 3: Boolean Expression, Collision Detection, Switch Statement

39 views5 pages

For unlimited access to Class Notes, a Class+ subscription is required.

Week 3
Conditionals, Loops, Arrays, and Random
Boolean Expression
true or false
Used by conditionals and loops for flow control
If-statement
Conditionals
Switch
Short cut for if-else if-else (nested if-statements) that works on numeric or char
values only
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 5 pages and 3 million more documents.

Already have an account? Log in
Design
Paint program
Size of dot caries with keyboard interaction (switch statement):
's' = 0.25
'm' = 1.0
'l' = 1.75
Any other key = regular size (0.75)
Unlock document

This preview shows pages 1-2 of the document.
Unlock all 5 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$10 USD/m
Billed $120 USD annually
Homework Help
Class Notes
Textbook Notes
40 Verified Answers
Study Guides
1 Booster Class
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Class Notes
Textbook Notes
30 Verified Answers
Study Guides
1 Booster Class