APCO 1P93 Lecture Notes - Lecture 7: Boolean Algebra, Boolean Expression

55 views4 pages

Document Summary

A decision structure (or selection structure) allows a program to perform actions only under certain conditions. Different types of decisions include: if, also called single alternative, if then else, also called dual alternative, case structure for multiple alternative decisions. The if statement: an action only occurs if the decision is true. End if: a diamond symbol is used in flowcharts. Figure 4-1 a simple decision structure for an everyday task. Determines whether a specific relationship exists between two values: used within the condition, a boolean expression, x > y x=y x

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