Logic Problems This is an assignment. There are no speaker notes.

Slides:



Advertisements
Similar presentations
Dr Verbrugge Simulated Machine Simulated Machine Problem: Find the Average of the following three numbers: 5, 7, 10 Average = 7 with a remainder of 1.
Advertisements

1 Shortcuts for Lazy Programmers! Topics Increment and Decrement Operators Assignment Operators.
Addition & Subtraction Add Plus More than Subtract Difference Take away Altogether Minus Less than +-
Bell Work2/12/15 Solve the system by elimination..
5.3 Solving Systems using Elimination
Inverse Operations ExpressionInverse Operation How do you get the variable by itself? x + 5 x x x ÷ 20 x3x3.
EXAMPLE 1 Following Order of Operations Music You buy a used guitar for $50. You then pay $10 for each of five guitar lessons. The total cost can be found.
Make sure yours is correct BEFORE you glue!!. any of the numbers that are added together a step by step solution to a problem the answer to a subtraction.
 Long division of polynomials works just like the long (numerical) division you did back in elementary school, except that now you're dividing with variables.
Interesting Integers!. What You Will Learn Some definitions related to integers. Rules for adding and subtracting integers. A method for proving that.
7 A&F 1.1 OBJECTIVE Use variables & operations to write an expression We LOVE Mathematical Language!!!
Aim #3.1: How do we factor quadratics? What is a quadratic equation?
Evaluating a Variable Expression To evaluate a variable expression:
Bell Ringer October 14, 2010 y = 7 – 2x 4x + y = 5 Step 1: Put the equations in Standard Form. 2x + y = 7 4x + y = 5 Step 2: Determine which variable to.
Computing with Decimals. Adding and Subtracting Decimals.
Basic Control Structures
Divide. Evaluate power – 3 = – 3 EXAMPLE – 3 = 3 2 – – 3 = 6 – 3 Multiply. Evaluate expressions Multiply and divide from.
Adding, Subtracting, Multiplying, and Dividing Real Numbers.
Assignment statement: Assigns a value to a variable Variable must appear on the left side, value on the right side of the assignment operator Right side.
Jeopardy Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy Add fractions Subtract Fractions Multiply Fractions Divide.
Jeopardy Solving Equations Add and Subtract Multiply and Divide Multi-Step Variables on each side Grouping Symbols $100 $200 $300 $400 $500 $100 $200.
5 2,389 Long Division x 4 Step 1: Does 5 go into 2? No. So mark it.
One step equations Add Subtract Multiply Divide  When we solve an equation, our goal is to isolate our variable by using our inverse operations.  What.
Operations with Decimals
Addition, Subtraction, Multiplication, Division by a whole number, and Division by a decimal.
Why use scientific notation? We use very big numbers and very small numbers in chemistry. It’s hard to do computations with numbers that have lots of.
EXAMPLE 1 Add and subtract matrices
Operators.
I’m Thinking of a Number
Solving Systems of Equations So far, we have solved systems using graphing and substitution. These notes show how to solve the system algebraically using.
Addition Multiplication Subtraction Division. 1.If the signs are the same, add the numbers and keep the same sign = = If the.
Solve Systems of Equations Using Elimination Section 6.3.
By: Tameicka James Addition Subtraction Division Multiplication
Simplifying Radical Expressions Objective: Add, subtract, multiply, divide, and simplify radical expressions.
Notes 2.1 Order of Operations PEMDAS If an expression has only numbers and symbols, it is a numerical expression. If it has a variable it is a variable.
What is 10-5? Correct! Click on the picture below to answer another question!
Scientific Notation. What is Scientific Notation? Scientific notation is a way of writing extremely large or small measurements. The number is written.
Solving inequalities. An equation. Solve this and graph the answer on a number line: x - 2 = 5.
ADDING AND SUBTRACTING MULTIPLYING AND DIVIDING REAL NUMBERS.
Adding Decimal Numbers
Fractions V Mixed Numbers & Improper Factions. Mixed Number A mixed number has a part that is a whole number and a part that is a fraction. A mixed number.
Objective 7.3 To solve systems of equations using elimination with addition and subtraction.
Jeopardy Solving Equations
Division of Polynomials
Integers Rules of Operation.
Integer Rules Memorize the Rules.
Function Tables.
Assignment statement:
Knowing your math operation terms
OR How to decide what math symbols to use
ORDER OF OPERATIONS BEMDAS. 1. Brackets - ( ) or [ ]
Problem-Solving Steps Solve Problem-Solving Steps Solve
Solving One-Step Equations
6-3 Solving Systems Using Elimination
Addition & Subtraction
Math Vocabulary Part 1.
To get y, multiply x by 3 then add 2 To get y, multiply x by negative ½ then add 2 To get y, multiply x by 2 then subtract 3 To get y, multiply x.
Chapter 7 Test Remediation
Divide the number in C by 10.
Troubleshooting Division
Fractions Mixed Numbers
Translating into Algebraic expressions
Multiply and divide Expressions
Add Subtract Multiply Divide
Adding, Subtracting, and Multiplying Radical Expressions
Unit 2 – Section 6 “Solving Inequalities
A3 4.2a To Operate on Polynomials
Add Subtract Multiply Divide
Step 1: Put the equations in Standard Form. Standard Form: Ax + By = C
COMPUTING.
Presentation transcript:

Logic Problems This is an assignment. There are no speaker notes.

Assume that you have the following memory variables: var1 var2 var3 var4 var5 var6 var7 var8 var9 var Follow the flowchart on the next slide and determine the answer. Note: the style of the flowchart is not the conventional flowchart style I want you to use when writing flowcharts, but the logical flow is still there. When I refer to an instruction number, count instructions, the first instruction after the start is instruction 1 etc.

Start Add: (number in var4) + (number in var2), put result into var7 Add: (number in var7) + (number in the variable whose number is in var6), put result into var6 Multiply: (number in var6) by (number in var1), put result into var5 Show the number that is now in var5 Stop

Assume that you have the following memory variables: var1 var2 var3 var4 var5 var6 var7 var Follow the flowchart on the next slide and determine the answer. Note: the style of the flowchart is not the conventional flowchart style I want you to use when writing flowcharts, but the logical flow is still there. When I refer to an instruction number, count instructions, the first instruction after the start is instruction 1 etc.

Start Put (number in var8) into var1 Add: (number in var1) + (number in var2), put result into var1 Change instruction 2: increase the second variable number mentioned in it by 1 Is the second variable number mentioned in instruction 2 greater than (number in var7) Show the number that is now in var1 Stop Y N

Assume that you have the following memory variables: var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var Follow the flowchart on the next slide and determine the answer. Note: the style of the flowchart is not the conventional flowchart style I want you to use when writing flowcharts, but the logical flow is still there. When I refer to an instruction number, count instructions, the first instruction after the start is instruction 1 etc.

Start Add: (number in var3) + (number in the var whose num is in var8), put the result into var4 Multiply: (number in var7) by (number in var7), put result into var7 Add: (number in var4) + (number in var1), put result into var4 Is: number in var4 = number in var9 Subtract: (number in var7) - (number in var2), put result into var7 Add: (number in var3) + (number in var9), put result into var10 Subtract: (number in var7) - (number in var10), put result into var11 Show the number that is now in var11 Stop N Y

Assume that you have the following memory variables: var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12 var Follow the flowchart on the next slide and determine the answer. Note: the style of the flowchart is not the conventional flowchart style I want you to use when writing flowcharts, but the logical flow is still there. When I refer to an instruction number, count instructions, the first instruction after the start is instruction 1 etc.

Start Subtract: (number in var7) - (number in the variable whose number is in var6), put result into var12 Add: (number in var12) + (number in var13), put result into var12 Is (number in var12) exactly divisible by 5 Y N Change Instruction 2: decrease the second variable number mentioned in it by (number in the variable whose number is in var11) Is (number in var2) less than the second variable number mentioned in instruction 2 Y Subtract: (number in var9) -1, put result into var9 A N A Show the number that is now in var12 Stop