+ All Categories
Home > Documents > Conditional statements

Conditional statements

Date post: 08-Feb-2016
Category:
Upload: redell
View: 37 times
Download: 1 times
Share this document with a friend
Description:
Conditional statements. Lesson 2.3. Conditional Statements. KEYWORDS Conditional statement – a statement that can be written in “if…then…” form. If-then statement – the form “ if p, then q ”, or “ p implies q ” Hypothesis – the phrase immediately following the word “ if ” - PowerPoint PPT Presentation
14
Lesson 2.3 CONDITIONAL STATEMENTS
Transcript
Page 1: Conditional statements

Lesson 2.3

CONDITIONAL STATEMENTS

Page 2: Conditional statements

CONDITIONAL STATEMENTS

• KEYWORDS

• Conditional statement – a statement that can be written in “if…then…” form.

• If-then statement – the form “if p, then q”, or “p implies q”

• Hypothesis – the phrase immediately following the word “if”

• Conclusion - the phrase immediately following the word “then”

Page 3: Conditional statements

CONDITIONAL STATEMENTS

• For example:

• If you had a statement…

• If the forecast is rain, then I will take an umbrella.

• The hypothesis:

• The conclusion:

Page 4: Conditional statements

CONDITIONAL STATEMENTS

• For example:

• If you had a statement…

• A number is divisible by 10 if its last digit is a 0.

• Hypothesis:

• Conclusion:

Page 5: Conditional statements

CONDITIONAL STATEMENTS

• But, what if the statement didn’t have “if…then…” in it?

• For example:

• The statement might read: “Points will be deducted from any paper turned in after Wednesday’s deadline.

• In this case, the hypothesis is: paper turned in after Wednesday’s deadline. The conclusion is: points will be deducted.

Page 6: Conditional statements

CONDITIONAL STATEMENTS

• Practice: (you write the conditional)

• Hypothesis: An animal is a mammal

• Conclusion: It is warm-blooded

• Hypothesis: A prism has bases that are regular polygons.

• Conclusion: It is a regular prism

Page 7: Conditional statements

CONDITIONAL STATEMENTS

• The hypothesis and the conclusion of a conditional statement can have a truth value of true or false, as can the conditional statement itself. Consider the following conditional.

Page 8: Conditional statements

CONDITIONAL STATEMENTS

• If Tom finishes his homework, then he will clean his room.

Page 9: Conditional statements

CONDITIONAL STATEMENTS

• In the last two: The conditional only indicates what will happen if Tom DOES finish his homework. It never states what will happen if he DOESN’T do his homework. He could clean his room or not clean his room if he does not finish his work.

• When the hypothesis of a conditional is not met, the truth of a conditional cannot be determined. When the truth of a conditional statement cannot be determined, it is considered TRUE by default.

Page 10: Conditional statements

CONDITIONAL STATEMENTSCONDITIONAL STATEMENTS

p q if p then qT T TT F FF T TF F T

Notice that a conditional is false ONLY when its hypothesis is true and its conclusion is false.

Notice too that when a hypothesis if false, the conditional will ALWAYS be considered true, regardless of whether the conclusion is true of false

Page 11: Conditional statements

CONDITIONAL STATEMENTS

• Determine the truth value for each statement:

• If you divide an integer by another integer, the result is also an integer.

CONDITIONAL STATEMENTS p q if p then qT T TT F FF T TF F T

Page 12: Conditional statements

CONDITIONAL STATEMENTS

• Determine the truth value for each statement:

• If a triangle has four sides, then it is concave.

CONDITIONAL STATEMENTS p q if p then qT T TT F FF T TF F T

Page 13: Conditional statements

CONDITIONAL STATEMENTS

Page 14: Conditional statements

CONDITIONAL STATEMENTS


Recommended