CS100 Chapter Notes - Chapter 6: Exclusive Or

47 views2 pages

Document Summary

End if equals to greater than less than greater than or equal to less than or equal to not equal to. General form of a decision using an if statement. Conditions: a comparison between 2 or more things that is true e. g. if hair colour = (comparison operator) brown then we are comparing the variable hair colour and checking if it is holding the word brown . It it is, then the condition is true, and the if statement will work. If age > 18 and citizen = canadian then. If you need to check only one variable, and you will be examining multiple possibilities then the case statement can be used for decisions. Select case name (the variable we are checking) case rebecca case tim case else. When this case statement runs, the word erase will be shown in the label.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents