Selection Structure Conditional and Compound Conditional Expressions.

Slides:



Advertisements
Similar presentations
-- in other words, logic is
Advertisements

Statements, Connectives, and Quantifiers
Lesson Objectives: By the end of this lesson you will be able to: 1.Identify the universal qualifications for voting in the United States. 2.Explain the.
Predicates and Quantifiers
Driver Education Info.
Chapter 3 section 1.  A statement Is a declarative sentence that is either true or false. (using lower case letters p, q, r …) 2 Types of statement 
1 Selection in C. 2 If / else if statement:  The else part of an if statement can be another if statement. if (condition) … else if (condition) … else.
Today’s Targets Evaluate the effect time has on saved money.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
CONGRESS, THE LEGISLATIVE BRANCH
Using addition property of equality
Predicates and Quantifiers
Copyright © 2015 by the McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution.
True or False? Session 7 Activity.
Discrete Mathematics and Its Applications
Dear God – I know that You are the source of all that I need to get through each day. I need to look for your wisdom and strength to make my day easier.
Photo Album by Administrator. Crooped The "School of Athens General to Specific- Deductive Reasoning is key ! Plato 424BC– 347 BC Get Down with the Inductive.
Deductive and Inductive Reasoning
Consumer Credit Laws. Fair Credit Reporting ACT o Provides rules for accessing/correcting credit reports o Requires lenders to tell you why you were denied.
Taxes What Do You Know?
Bell Ringer.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Chapter 2 Expanded Tax Formula, Forms 1040A and 1040 and Basic Concepts “Taxes: Of life's two certainties,
Critical Thinking Looking at the Reasons. Let’s review last week’s questions. What is the main _____? What is the main issue?
Logic The study of critical thinking. Mathematical Sentence A statement of fact…called a statement Can be judged as true or false Not a question, command,
© Capital Community College The Colon: a sentence gateway The colon comes at a point in the sentence where the sentence could come to a complete stop.
1. We’ve learned that our programs are read by the compiler in order, from top to bottom, just as they are written The order of statement execution is.
Verifying Arguments MATH 102 Contemporary Math S. Rook.
2.2 Statements, Connectives, and Quantifiers
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
MATH 110 Sec 3-1 Lecture on Statements and Connectives STATEMENT: A declarative sentence that is either TRUE or FALSE (but not both at once).
Lecture Comp 25 Math & Logic Discussion. What is logic? Logic is the study of reason Focus is the method or process by which an argument unfolds Aristotle.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
Logic and Reasoning Conditional Statements. Logic The use and study of valid reasoning. When studying mathematics it is important to have the ability.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
Word Problem Consider the following problem: To register, you will need either a yellow card or a note from the Dean. To obtain a note from the Dean you.
Use and mention Logic is part of philosophy Logic is a word “Logic” is a word Use There’s glory for you. --what do you mean by “glory”? Mention.
Thinking Mathematically Statements, Negations, and Quantified Statements.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
DEE: If you think we're wax-works, you ought to pay, you know. Wax-works weren't made to be looked at for nothing. Nohow. DUM: Contrariwise, if you think.
True or False 1.Too many chips are unhealthy. 2.Sausages have lots of vitamin C. 3.Cucumber and celery have lots of protein. 4.Pasta is a good way to get.
Logic Terminology Statement- declarative sentence that is either true or false Opinion- a belief about matters commonly considered to be subjective,
Deductive and Inductive Reasoning PPT by Denise Gill Created using: Kirszner, Laurie G. and Stephen R. Mandell. Patterns for College Writing: A Rhetorical.
Deductive s. Inductive Reasoning
Discrete Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Tax Unit: Module 5 Consumer Math Class East Jackson High School.
© Take Charge Today – August 2013 – Understanding Credit Cards – Slide 1 Funded by a grant from Take Charge America, Inc. to the Norton School of Family.
SYLLOGISM - FORM & LOGICAL REASONING. WHAT IS A SYLLOGISM? Syllogism – the formal structure of logical argument. Three statements - Major Premise, Minor.
Discussion Lecture Comp 25 Math & Logic.
DEDUCTIVE vs. INDUCTIVE REASONING
1.8 Statements of LOGIC Conditional Statement Form “If……then…….”
Minimum Wage… What is the current wage in Washington State? $8.67
Sequence, Selection, Iteration The IF Statement
Logic.
Inductive vs. Deductive Reasoning
Basic Logical Operations (Fascinating)
Inductive Reasoning Conjecture – An educated guess based on known information. Inductive Reasoning – Reasoning that uses a number of specific examples.
Complex Conditionals Human languages are ambiguous
Testing for Validity and Invalidity
Logical Forms.
(1.4) An Introduction to Logic
Discrete Mathematics Lecture 2: Propositional Logic
Integers & Absolute Value
Discrete Mathematics Lecture 2: Propositional Logic
Logical Claims.
Predicates and Quantifiers
© T Madas.
Phil2303 intro to logic.
Presentation transcript:

Selection Structure Conditional and Compound Conditional Expressions

Notice the following advertisement: Country Fried Steak Breakfast $4.99 Includes 2 Eggs (any Style), Country Fried Steak and Gravy, Grits or Breakfast Potatoes, Toast or Biscuits, and Fruit Jelly…

Can you get Eggs, Steak, & Gravy, Grits and potatoes and toast and biscuit and jelly ?

Includes 2 Eggs (any Style), Country Fried Steak and Gravy, Grits or Breakfast Potatoes, Toast or Biscuits, and Fruit Jelly… Not unless you wish to pay extra !!!

Includes 2 Eggs (any Style), Country Fried Steak and Gravy, Grits or Breakfast Potatoes, Toast or Biscuits, and Fruit Jelly… What can we get for $4.99 ?

Includes 2 Eggs (any Style), Country Fried Steak and Gravy, Grits or Breakfast Potatoes, Toast or Biscuits, and Fruit Jelly… Eggs Steak AND Gravy Grits OR Potatoes Toast OR Biscuts Fruit Jelly

This is an example of logical reasoning For Example: All men are mortal Socrates was a man Therefore, Socrates was mortal

In General, a statement is a declarative sentence that can be classified as TRUE or FALSE but not both at the same time Boston is the capitol of Massachusetts The number 2 is even and less than 20 If 2 is even, then is also even

The number 2 is even and less than 20 This is a compound statement as the ENTIRE statement is only TRUE if BOTH parts of the statement are true 2 MUST be an even number AND It must be less than 20

A compound statement that utilizes AND can only be true if ALL parts of the statement are true Ann is passing Math AND she is passing English This statement can only be TRUE is Ann is in fact passing both Math and English

A compound statement that utilizes OR can be true if ANY part of the statement is true We need to stop inflation OR increase wages This statement is TRUE if inflation is stopped OR wages are increased

Negation reverses the initial meaning of a statement Today is Friday (Negated) Today is NOT Friday

Negate the following statements: All of us like pistachio nuts Nobody likes freezing water Some students work part time

Examples: You are a full time student OR You are over 21 AND You are a resident of the State How do we interpret this statement ?

Based on the following, how can we use Windows Control Panel: Some of the things you can use Control Panel for are changing your screen colors, installing or changing settings for hardware and software, and setting up or changing settings for a network.

Make a compound statement from the following: To apply for the job, you must be at least 25 years of age An applicant must be a college graduate

Make a compound statement from the following: You may only renew your drivers license if you are a safe driver, have no physical disability, and are not addicted to drugs or intoxicants

Make a compound statement from the following: You may classify yourself as Single on your tax return if any of the following are true: You are not married You are legally seperated You were widowed before Jan 1 and did not remarry

Evaluate this statement: If your tax return is more than 60 days late, the minimum penalty will be $100 or the amount of any tax you owe, whichever is smaller