Ms. Jen’s Class here is your class code classv54
Ms. Cooks Class code classv48
Mr. Mac’s class code classv52
Conditions what are conditions?
What is a condition?
Conditions (conditional expressions) are the second of three basic flow control structures in programming. Like sequence, conditions influence a computer program’s decision-making process.
“If, then” Statements
Also known as “if, then” logic statements, conditions enable a computer program to act differently each time it is executed; depending on if an input is evaluated to be either true or false.
In a programming language, conditions are classic “if, then” logic statements and possess both a hypothesis and conclusion.
Here is a chart that uses the simple algorithm of making a PBJ Sandwich.If all the conditions are met in Sequence then you can make a PBJ sandwich.
Terms and Definitions
- Condition: A condition is an exception to a rule, and is also known as a rule-breaker. A condition in program allows the program to perform different actions, depending on the condition being true or false.
- Conditional Statement: A conditional statement allows programmers to develop more dynamic programs by breaking rules. Conditional statements are “If, then” statements: If a condition is true, then do _(x)_.
- Username: When used with a password, allows a user to log into the database and access information. A rule-breaker.
- Password: When matched with a username, allows a user to log into the database and access information. A rule-breaker.
- Rule: A rule is a set of guidelines in a programming language that instruct a computer program to execute or perform certain operations.
- Exception: Excluded from a general statement, does not follow a rule. A condition is an exception to the rule.
- Rule-breaker: Exceptions to the rule. An example in programming is a password.
- “If… then…” statement: A logic statement, when used in programming enable a computer program to act differently each time it is executed depending on if an input is evaluated to be either true or false.