IF Statements.

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
A little Boolean Logic. IF loving you is wrong THEN I dont want to be right.
Control Flow Statements: Repetition/Looping
IF statement (i) Single statement. IF ( logical expression ) statement Example: read(*,*) a if (a. lt. 0) a = -a write(*,*) a Or read(*,*) a if (a < 0)
Chapter 13 Control Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Control Structures Conditional.
The "if structure" is used to execute statement(s) only if the given condition is satisfied.
Lesson 5 - Decision Structure By: Dan Lunney
PZ12A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ12A - Guarded commands Programming Language Design.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Find opposites of numbers EXAMPLE 4 a. If a = – 2.5, then – a = – ( – 2.5 ) = 2.5. b. If a =, then – a = –
Simple Control Structures IF, IF-ELSE statements in C.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Syntax : If ( Expression ) If ( Expression ) {Statements; } Example : ?>
Equations Reducible to Quadratic
TABLES AND VALUES Section 1.5. Open Sentence Equation.
Solving Systems Using Elimination
The world of Constructs Control Structures. The three Structures Sequence Selection Loop Entry Exit.
Sets of Real Numbers Lesson 1.2 Mrs. Carley. The Real Number System Graphic Organizer Rational Numbers Irrational Numbers Integers Whole Numbers Natural.
Nested Statements Excel Discovery By Sam Griffiths.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
ITK 168 Decisions Dr. Doug Twitchell September 20, 2005.
“If John studies then he will get an A.” s a s a F F T F T T T T T T F F.
Lesson thirteen Conditional Statement "if- else" ©
The If Statement There are no switch statements in Python. You need to use just if statements. There are no switch statements in Python. You need to use.
Sum of Arithmetic Sequences. Definitions Sequence Series.
Conditional statements and boolean expressions Arithmetic, relational and logical operators.
5-5 Indirect Proof. Indirect Reasoning: all possibilities are considered and then all but one are proved false. The remaining possibility must be true.
Title Category #1 Category #2 Category #3Category #
3 – Graphs of Inequalities (No Calculator)
Sequence, Selection, Iteration The IF Statement
1.8 Graphing Linear Inequalities
Algebra Bell-work 9/13/17 Turn in your HW! 1.) 7x – 6 = 2x + 9
Transition to Code Upsorn Praphamontripong CS 1110
Factors, multiple, primes: Factors from prime factors
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
Calculating Probabilities
If Statement Functions in Excel
CPS120: Introduction to Computer Science
البرمجة بلغة الفيجول بيسك ستوديو
Who Wants To Be A Millionaire?
برنامج التميز في خدمة عملاء السادة موظفي مكاتب المساعدة القانونية
Factors, multiple, primes: Prime factors
Session 2: Giving directions
Program Flow Control Selection & repetition
Visual Basic – Decision Statements
Conditional Statements
Find the reference angle for the angle measuring {image}
Decimals: Multiplying by 2.5
SECTION 2-4 : SOLVING EQUATIONS WITH THE VARIABLE ON BOTH SIDES
Nate Brunelle Today: Conditional Decision Statements
About Me!!!. About Me!!! Family Oldest of three brothers Born in Detroit, Michigan.
Angles on a straight line Vertically opposite angles
LI4 Inequalities- True or False?.
Systems of Linear Equations: An Introduction
© T Madas.
Straight line graphs: Horizontal and vertical lines
End (Insert your place:_________)
Chapter 2 Sets Active Learning Lecture Slides
Factors, multiple, primes: Multiples
Fractions: Simplifies to a unit fraction?
Straight line graphs: Horizontal and vertical lines
Standard Form: Multiplying powers of 10
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Standard form: In standard form?
True or False True or False
Coordinates: Naming 2D coordinates – quadrant 1
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Presentation transcript:

IF Statements

Conditional Statements IF Statements Then (go straight) IF (have walk) Else (turn toward destination) Then IF - Else

IF Statements in Excel Then IF - Else [Value if True] =IF( Logic_Test [Value if False] , )

IF Statements in Excel Then IF - Else [Value if True] =IF( Logic_Test [Value if False] , ) =IF( 5 > 2 2 > 5 x > y , 7 5 + 2 x + y , 10 5 * 2 x * y ) x = 2 Y = 5 x = 5 Y = 2

IF Statements in Excel Then IF - Else [Value if True] =IF( Logic_Test [Value if False] , ) =IF( 2 > 5 , 7 , 10 ) x = 2 Y = 5