Relational and Equality Operators Table 4-1. Sample Conditions Table 4-2.

Slides:



Advertisements
Similar presentations
Chapter 4 - Control Statements
Advertisements

Introduction to C Programming
ICS103: Programming in C 4: Selection Structures Muhamed F. Mudawar.
Chapters 7-8 Key Points and JMP Instructions. Example 1: Comparing Two Sample Means Means are different at the  =.05 level.
1 times table 2 times table 3 times table 4 times table 5 times table
 To solve a quadratic equation it must be equal to zero ◦ And the terms must be in order!!  Use the HAVE – USE Chart sign in the problem signs in the.
19/5/2015CS150 Introduction to Computer Science 1 Announcements  1st Assignment due next Monday, Sep 15, 2003  1st Exam next Friday, Sep 19, 2003  1st.
Paging Examples Assume a page size of 1K and a 15-bit logical address space. How many pages are in the system?
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
142 H -1 Conditionals Essential feature for a computer language Conditional Statement: allows the computer to choose between several paths depending on.
Relational Algebra Sample Questions.
Table of Contents First get all nonzero terms on one side. Quadratic Equation: Solving by factoring Example: Solve 6x 2 – 13x = 8. 6x 2 – 13x – 8 = 0 Second.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Objective: Students will subtract integers using rules (11-4).
First derivative: is positive Curve is rising. is negative Curve is falling. is zero Possible local maximum or minimum. Second derivative: is positive.
Absolute Value Equations
Properties of Exponents
Exponents exponent power base.
Comparison Operators Relational Operators.
Part (a) In the table, we see that the 1st derivative goes from positive to negative at x=2. Therefore, we know that f(x) has a relative maximum there.
Multiplication table. x
Chapter 4: Control Structures
Times Tables.
Exponents: Negative & Zero
Real Numbers.
Control Statement Examples
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Warm up – Solve by Completing the Square
1.1 Adding Integers with the Same Sign
13.1 Exponents.
6.4 Factoring and Solving Polynomial Equations
Lesson 4.6 Negative and Zero Exponents
Chapter Ten Exponents and Scientific Notation
Motion Graphs.
Literacy Research Memory Skill Practice Stretch!
Using Derivatives For Curve Sketching
Formal Charge and Molecular Structure
VOCABULARY! EXAMPLES! Relation: Domain: Range: Function:
MATH DICTIONARY.
ZERO AND NEGATIVE EXPONENT Unit 8 Lesson 3
Zero and Negative Exponents
Division Properties of Exponents
More Multiplication Properties of Exponents
Slope Determine whether the slope is positive, negative, Zero, or undefined.
Zero and Negative Exponents
Create an input-output table from the following rule or scenario
Unit 4 Scientific Notation
Multiplying Powers with the Same Base
Representing Integers
Operations With Integers
Adding Integers Unit 1 Lesson 6
DeMorgan's & related Laws
PROPERTIES Of Exponents
What connections can you make? What else do you notice?
Find Slope and Rate of Change
P5 Section P5.
10.8: Improper Integrals (infinite bound)
C.2.10 Sample Questions.
4-2 Warm Up Problem of the Day Lesson Presentation
Do Now Evaluate each expression · · · · ÷ ÷
C.2.8 Sample Questions.
Unit 1 – Atomic Structure
3 times tables.
6 times tables.
Section 4.5 The Slope of a Line Goal: Find the slope of a line.
C.2.8 Sample Questions.
Literacy Research Memory Skill Practice Stretch!
Factoring Trinomials.
Presentation transcript:

Relational and Equality Operators Table 4-1

Sample Conditions Table 4-2

Logical Operators And && (temperature > 90) && (humidity > 0.90) Or || (salary 5) Not ! !(0 <= n && n <= 100)

Operator Precedence Table 4.6

Sequential Flow A set of steps that are executed sequentially { statement; } statement

Selection Control Structure Execution path changes based on a condition Condition Do this Do something else FT

Character Comparisons Table 4.8

if Statement with One Alternative if (condition) action to perform if true; if (R != 0.0) current = voltage / R;

if Statement with Two Alternatives if (condition) action to perform if true; else action to perform if false; if (voltage > 3.3 ) printf(A digital High is present!"\n); else printf(A digital Low is present!\n");

Blocks if (condition) { statement; } else { statement; } if (condition) { statement; } else { statement; }

Nested if Statements if (x > 0) num = num + 1; else { } if (x < 0) num_neg = num_neg + 1; else /* x equals 0 */ num_zero = num_zero + 1;