Lab Instructor: Salem Othman

Slides:



Advertisements
Similar presentations
Control Flow Statements: Repetition/Looping
Advertisements

Decisions If statements in C.
Virginia Standards of Learning 5.1 a. The student will read, write, & identify the place values of decimals through thousandths.
What is the Result and Type of the Following Expressions? int x=2, y=15;double u=2.0,v=15.0; -xx+yx-y x*vy / xx/yy%xx%y u*vu/vv/uu%v x * u(x+y)*uu /(x-x)
We count one, two, three….
Use base ten blocks and the clues to find the mystery numbers…
Selection Sort
Objective - To read, write and identify the values of whole numbers.
1 Python Chapter 4 Branching statements and loops © Samuel Marateck 2010.
Logical functions and - Logical AND function. Example: (and (> 5 4) (< 5 4)) or - Logical OR function. Example: (and (> 5 4) (< 5 4)) not - Logical negation.
Implementing Control Logic in C# Svetlin Nakov Telerik Corporation
Four Different Ways to Show a Number
WALT: Read & write 2 digit numbers.
Write the word form of the number. Nineteen billion four hundred thirty two million one thousand two hundred ten.
Multiplication by multiples of 10 and 100 Objective to multiply numbers when 0’s are involved.
HUNDREDTHS One of one hundred equal parts Example:
0 This is your 0:000:010:020:030:040:050:060:070:080:090:100:110:120:130:140:150:160:170:180:190:200:210:220:230:240:250:260:270:280:290:300:310:320:330:340:350:360:370:380:390:400:410:420:430:440:450:460:470:480:490:500:510:520:530:540:550:560:570:580:59
BASIC LOGIC GATES. In studying digital in integrated circuits, one must start with the simples group of circuits, the SSIs or Small Scale Integrated Circuits.
Objective The student will be able to: recognize and use the commutative and associative properties and the properties of equality.
Introduction to Computing Lecture 05: Selection (continued) Introduction to Computing Lecture 05: Selection (continued) Assist.Prof.Dr. Nükhet ÖZBEK Ege.
1 2. Program Construction in Java. 2.4 Selection (decisions)
1 Compound Assignment C++ has a large set of operators for applying an operation to an object and then storing the result back into the object Examples.
1.5 Conditional Statements academy.zariba.com 1. Lecture Content 1.If-else statements 2.If-else-if statements 3.Switch-case statements 2.
1 Chapter 4, Part 1 If Control Construct A mechanism for deciding whether an action should be taken JPC and JWD © 2002 McGraw-Hill, Inc. Modified by S.
Selection Sort
Numbers ZERO 0 ONE 1 TWO 2 THREE 3 FOUR 4 FIVE 5.
Review if imag(x) > 0 fprintf('Sorry, but I don''t understand complex numbers.\n'); return end if x < 10 % leave this out, type the next line first, and.
Multiplying Whole Numbers SWBAT multiply with zeros in one or more whole-number factors.
$100 $200 $300 $400 $100 $200 $300 $400 $300 $200 $100 Multiply by 1 digit numbers Multiply & estimate results Multiply by 2 digit numbers Multiply.
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.
Algebra 1. A = 0 B = 8.99 C = 1 D. 1(7.99) = 7.99.
Read & write 2 digit numbers. Through this power point your child will learn to -Understand Tens & Units -Write numbers in words -Write numbers in figures.
Measuring Temperature
4 Chapter Chapter 2 Decimals.
Whole Numbers.
Chapter 5 Decimals.
Place Value with Decimals
Whole Numbers and Decimals
Objective The student will be able to:
Place Value II By Monica Yuskaitis.
© T Madas.
Lab Instructor: Salem Othman
Objective - To round whole numbers.
A mechanism for deciding whether an action should be taken
Homework / Place Value Test Review
Place Value II.
We count one, two, three….
Programmer-Defined Functions, Call-by-Value, Multiple Files Lab 5
Multiplying Decimals.
This number model shows ten groups of ten
Expression Review what is the result and type of these expressions?
Tens and Ones Numbers to 50 (fifty)
Tens and Ones Numbers to 50 (fifty)
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Decimal Place Value.
TO PAST TELLING THE TIME.
Computer Science Core Concepts
Primary 5 Mathematics Whole Numbers
Objective - To read, write and identify the values of whole numbers.
Numbers and Number Names 0-20
Year 1 Spring Block 1 Number: Addition and Subtraction within 20
Objective The student will be able to:
Objective The student will be able to:
CSCE 206 Lab Structured Programming in C
This Photo by Unknown Author is licensed under CC BY-SA
Ticket in the Door ( Write the phrase and the expression)
Odd and Even Numbers.
Tens and Ones Numbers to 50 (fifty).
Presentation transcript:

Lab Instructor: Salem Othman Branching Lab 2 Lab Instructor: Salem Othman

Review Go to Dr. Mikhail Nesterenko website and read the topic: Boolean algebra, Boolean and relational operators, branching constructs You need to understand: if-statement if if-else if-else-if switch-statement

Question 1

Question 2 Block

Question 3

Mini sort ? one ? two ? three

Mini sort 3 one 2 two 1 three

Mini sort ? tmp 3 one 3 tmp 2 two 1 three 3 two 3 tmp 1 three 2 one 2

Number spell first digit second digit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 …………..99 if(number of tens is equal to 1) switch that recognizes the second digit and prints the whole number "ten", "eleven", or ... else switch that recognizes the first digit and prints "twenty" or "thirty", or ... note that this switch should ignore the case (print nothing) if the first digit is zero after that switch that recognizes the second digit and prints "one" or "two", or ... note that this switch should also ignore the case of zero