Part 1 Arithmetic Operator Precedence

Size: px
Start display at page:

Download "Part 1 Arithmetic Operator Precedence"

Transcription

1 California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Activity C Expressions Computers were originally designed for their fantastic ability to perform complex math. That hasn t changed much over the many, many decades since the first mainframes. Even today, most of our favorite applications make use of complex math (behind the scenes). For example, the video games that you play (rather than study) are heavily reliant on computations from determining the path of a projectile, the gravity under your avatar s feet, and even things like making realistic shadows, shading, and mist. Part 1 Arithmetic Operator Precedence Before doing anything on the computer, think about the following expression: / 2 * 3 What is the result? It could be 15 or it could be 13 or, perhaps, 5. Which is it? Hopefully, you recognize that the right answer is 13. This is because of the "precedence" of operators. The multiplication operator (an asterisk in almost all programming languages) has higher precedence than the addition operator. Both multiplication and division have the same level and are calculated from left-to-right. There is more discussion of this issue in the lecture textbook. Part 2 Simple Mathematics Let's look at a very simple mathematical equation from geometry the diameter of a circle vs. its radius. Of course, back in high school, you learned that the diameter is equal to twice the radius. (Yes, you probably guessed by now, it's time to dust off your geometry boots) 1. Start a new flowchart 2. Add an assignment that computers the radius from given diameter. The following is the pseudocode from the textbook: Set radius = diameter / 2 3. Uh oh, that needs two variables. So, add declarations to the start of your program. Make them real numbers. 4. Let's set the diameter to a value. Add an assignment that sets diameter to Add an output statement to the end of the flowchart. Output the radius.

2 2 6. Execute your flowchart. Did you get the correct result? If not, see what you did wrong. Let's make the results look better. Just printing a number doesn't help the user. 7. Use an Output statement to make your output look like this. (Remember the concatenation operator?) The radius is 12.5 Hard-coding the diameter to 25 is good for testing, but doesn't make a very useful program. 8. Replace the Diameter assignment statement with an input statement. 9. Add a helpful prompt an output statement asking the user to enter the diameter. In this part, you did the calculations separately from the output statement, saving the result (and then printing that saved result in the output statement). You could have alternatively just output diameter / 2. Both approaches would work. But there is a big difference. By saving the result in a variable, we can reuse it later in the program. Part 3 Mathematical Expressions In your future programs especially if you are doing something with graphics you will use geometry. So, let's do something with circles and shapes. The following is the equation used to calculate the area of a circle. How can we implement this formula in Flowgorithm? The formula uses π right next to the variable r. We know that this means that they will be multiplied. However, computers aren't that smart. So, while we know there is a multiplication operator there, the computer doesn't Also, how are we going to get π? Naturally, you can write out , but that can get a bit tiresome and makes your program hard to read. Fortunately, since pi is a common constant, many programming languages have a built-in constant for it. In Flowgorithm, it is simply pi. You can use pi as a constant anywhere a variable will work. Finally, what about the exponent? Some languages provide an exponentiation operator. Many languages (sadly) don't. When the operator is supported (as it is in Flowgorithm), the symbol "^" is used. 1. Add a new declaration to store the area. The formula uses A, but that's very short and not very descriptive. In computer science, it is good to have readable variable names. Use the name: circle. 2. Add a new assignment statement for the area according to the formula above. You created a variable name radius, so make sure you use the right name in your expression instead of r. 3. Output the area of the circle to the screen. 4. Execute and check the results. 5. If you didn't do so already, add a nice caption to the output statement. Let the user know it s the area of a circle.

3 Take moment to think about how the calculation would look if you didn't use the value stored in radius. Without it, you would have to use diameter/2 instead. Would you need parenthesis around diameter/2?. Think about operator precedence. The answer is "yes", you would need them. The exponent operator is performed before multiplication and division. 3 Part 4 More mathematics Now that you can compute the area of a circle, it would be nice to also compute the area for a few more geometric shapes. Below is the formula to compute the surface area of a sphere. Notice that the mathematical formula again uses A to represent the area. Mathematical books do this all the time. However, for your flowchart, this is a different value than the area of a circle. NOTE: Basic Structure of Programs You might have guessed already that programs generally have a very simple structure. First, variables are declared. Second, input values are read (with prompts). Third, calculations are performed. Finally, the results are output. This basic approach makes programs easier to read, write, and modify. Declare variables Input Values Calculations Output results 1. Add a new variable (a real) to store the surface area of a sphere. Choose a good name. 2. Implement the formula above. 3. Output the calculated result with a nice caption. 4. Execute your flowchart and check the results. Excellent work! So far your flowchart: inputs a diameter (with a nice prompt) and outputs the area of a circle and the surface area of a sphere. Let's add one more geometric shape to your flowchart. This time, you will calculate the surface area of a tube such as a pipe, straw, etc. The formula is below. Notice that you will need another variable to store the surface area of the tube as well as the height.

4 4 5. Add variable declarations for both height and the area of a tube (which you are calculating). Make both reals (real). 6. Add a new input shape for the height. Put it right after you input the diameter. 7. Add a nice prompt for the height. 8. Add an assignment shape for the volume of a tube. 9. Add an output shape with a nice caption. 10. Execute your flowchart and check the results. Part 5 Putting It All Together Wow! That is a lot of math! You calculated the area of a circle, sphere, tube, and displayed all these calculations nicely to the screen. Your flowchart is actually useful! So, let's use your skills to calculation something truly important the surface area of a Minion. Minions are helpful (and mischievous) little creatures that help Gru with his evil plans. Well, at least when they aren't looking for bananas. But, why does Gru need the surface area of a minion? Perhaps, he is planning to paint them in camouflage. Is he planning to invade Sacramento Hall to take over Sac State? (gasp!) Or, perhaps, he is getting enough sun tan lotion to take them all to the Bahamas! Either way it's probably better we don't know. Minions are actually very mathematically shaped creatures and Gru can use basic geometry to figure out their surface area:

5 5 So, a minion's surface area is half the area of a sphere (their "forehead"), the surface area of a tube (their "head/body"), and the area of a circle (their "bum"). We can use the formulas above to figure out the result. At this point, it is important to look at what your flowchart already does. You already calculated the volume of sphere, tube, and circle. You could create a very fancy expression by combining all the above formulas. There is nothing wrong with that approach. However, programmers often like to break a large problem into smaller parts. NOTE: Divide and Conquer Sometimes it is useful to break complicated arithmetic expressions down in this way to help you (the human) understand them. Other times, you'll be happy with the parenthesized, and somewhat more complicated, combined expressions. There is no real rule for which is best. Whatever makes it easier for you (and others) to understand is the best choice. Let's first try it the hard way. 1. Add another variable (a real again) to hold the surface of a minion. The name is up to you. 2. Add a new assignment shape to calculate the area of minion. Don't use your existing values for the sphere, circle or tube. Combine the formulas above. 3. Output the result of the calculation. Give it a nice caption. 4. Execute your flowchart and check the results. Once you make sure the math is correct, let's see if doing it the "easy" way gets the same result. 5. Add another variable to store the second minion calculation. Think of a good name. 6. Add an assignment shape to compute the surface area. This time, use the sphere, circle, and tube variables you calculated. 7. Output the result with a nice caption 8. Execute your flowchart. The two calculations should match. If not, you made a mistake. Fix it. Which approach do you prefer?

6 The End Result 6 Your program should have the following: Variable declarations: diameter, radius, area of circle, area of sphere, area of a tube, area of minion (using a complex expression), and the area of a minion (using existing variables) Input statements: diameter and height Assignments: radius, area of circle, area of sphere, area of a tube, area of minion (using a complex expression), and the area of a minion (using existing variables) Output: all the calculated variables with nice captions.

Part 1 Simple Arithmetic

Part 1 Simple Arithmetic California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Activity B Variables, Assignments, and More Computers

More information

Part 1 Your First Function

Part 1 Your First Function California State University, Sacramento College of Engineering and Computer Science and Snarky Professors Computer Science 10517: Super Mega Crazy Accelerated Intro to Programming Logic Spring 2016 Activity

More information

CSI Lab 02. Tuesday, January 21st

CSI Lab 02. Tuesday, January 21st CSI Lab 02 Tuesday, January 21st Objectives: Explore some basic functionality of python Introduction Last week we talked about the fact that a computer is, among other things, a tool to perform high speed

More information

Part 1 - Your First algorithm

Part 1 - Your First algorithm California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Spring 2017 Activity A Introduction to Flowgorithm

More information

Part 1 - Your First algorithm

Part 1 - Your First algorithm California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Spring 2016 Activity A Introduction to Flowgorithm Flowcharts

More information

Chapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1

Chapter 2. Designing a Program. Input, Processing, and Output Fall 2016, CSUS. Chapter 2.1 Chapter 2 Input, Processing, and Output Fall 2016, CSUS Designing a Program Chapter 2.1 1 Algorithms They are the logic on how to do something how to compute the value of Pi how to delete a file how to

More information

Area rectangles & parallelograms

Area rectangles & parallelograms Area rectangles & parallelograms Rectangles One way to describe the size of a room is by naming its dimensions. So a room that measures 12 ft. by 10 ft. could be described by saying its a 12 by 10 foot

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Someone else might choose to describe the closet by determining how many square tiles it would take to cover the floor. 6 ft.

Someone else might choose to describe the closet by determining how many square tiles it would take to cover the floor. 6 ft. Areas Rectangles One way to describe the size of a room is by naming its dimensions. So a room that measures 12 ft. by 10 ft. could be described by saying its a 12 by 10 foot room. In fact, that is how

More information

8.5 Volume of Rounded Objects

8.5 Volume of Rounded Objects 8.5 Volume of Rounded Objects A basic definition of volume is how much space an object takes up. Since this is a three-dimensional measurement, the unit is usually cubed. For example, we might talk about

More information

Control, Quick Overview. Selection. Selection 7/6/2017. Chapter 2. Control

Control, Quick Overview. Selection. Selection 7/6/2017. Chapter 2. Control Chapter 2 Control, Quick Overview Control Selection Selection Selection is how programs make choices, and it is the process of making choices that provides a lot of the power of computing 1 Python if statement

More information

Skill 1: Multiplying Polynomials

Skill 1: Multiplying Polynomials CS103 Spring 2018 Mathematical Prerequisites Although CS103 is primarily a math class, this course does not require any higher math as a prerequisite. The most advanced level of mathematics you'll need

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG 1 Notice Assignments Reading Assignment: Chapter 3: Introduction to Parameters and Objects The Class 10 Exercise

More information

More Formulas: circles Elementary Education 12

More Formulas: circles Elementary Education 12 More Formulas: circles Elementary Education 12 As the title indicates, this week we are interested in circles. Before we begin, please take some time to define a circle: Due to the geometric shape of circles,

More information

MITOCW ocw f99-lec12_300k

MITOCW ocw f99-lec12_300k MITOCW ocw-18.06-f99-lec12_300k This is lecture twelve. OK. We've reached twelve lectures. And this one is more than the others about applications of linear algebra. And I'll confess. When I'm giving you

More information

Basic and Intermediate Math Vocabulary Spring 2017 Semester

Basic and Intermediate Math Vocabulary Spring 2017 Semester Digit A symbol for a number (1-9) Whole Number A number without fractions or decimals. Place Value The value of a digit that depends on the position in the number. Even number A natural number that is

More information

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 [talking head] Formal Methods of Software Engineering means the use of mathematics as an aid to writing programs. Before we can

More information

Name: Target 12.2: Find and apply surface of Spheres and Composites 12.2a: Surface Area of Spheres 12.2b: Surface Area of Composites Solids

Name: Target 12.2: Find and apply surface of Spheres and Composites 12.2a: Surface Area of Spheres 12.2b: Surface Area of Composites Solids Unit 12: Surface Area and Volume of Solids Target 12.0: Euler s Formula and Introduction to Solids Target 12.1: Find and apply surface area of solids 12.1a: Surface Area of Prisms and Cylinders 12.1b:

More information

Variables and Constants

Variables and Constants 87 Chapter 5 Variables and Constants 5.1 Storing Information in the Computer 5.2 Declaring Variables 5.3 Inputting Character Strings 5.4 Mistakes in Programs 5.5 Inputting Numbers 5.6 Inputting Real Numbers

More information

(Refer Slide Time: 00:51)

(Refer Slide Time: 00:51) Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute Technology, Madras Module 10 E Lecture 24 Content Example: factorial

More information

Project 2: How Parentheses and the Order of Operations Impose Structure on Expressions

Project 2: How Parentheses and the Order of Operations Impose Structure on Expressions MAT 51 Wladis Project 2: How Parentheses and the Order of Operations Impose Structure on Expressions Parentheses show us how things should be grouped together. The sole purpose of parentheses in algebraic

More information

= 25)(10) 10. =

= 25)(10) 10. = 8.5 Volume of Rounded Objects A basic definition of volume is how much space an object takes up. Since this is a three-dimensional measurement, the unit is usually cubed. For example, we might talk about

More information

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. Guide to and Hi everybody! In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. This guide focuses on two of those symbols: and. These symbols represent concepts

More information

lundi 7 janvier 2002 Blender: tutorial: Building a Castle Page: 1

lundi 7 janvier 2002 Blender: tutorial: Building a Castle Page: 1 lundi 7 janvier 2002 Blender: tutorial: Building a Castle Page: 1 www.blender.nl this document is online at http://www.blender.nl/showitem.php?id=4 Building a Castle 2000 07 19 Bart Veldhuizen id4 Introduction

More information

Table of Contents. Introduction to the Math Practice Series...iv Common Mathematics Symbols and Terms...1

Table of Contents. Introduction to the Math Practice Series...iv Common Mathematics Symbols and Terms...1 Table of Contents Table of Contents Introduction to the Math Practice Series...iv Common Mathematics Symbols and Terms...1 Chapter 1: Real Numbers...5 Real Numbers...5 Checking Progress: Real Numbers...8

More information

Overview (4) CPE 101 mod/reusing slides from a UW course. Assignment Statement: Review. Why Study Expressions? D-1

Overview (4) CPE 101 mod/reusing slides from a UW course. Assignment Statement: Review. Why Study Expressions? D-1 CPE 101 mod/reusing slides from a UW course Overview (4) Lecture 4: Arithmetic Expressions Arithmetic expressions Integer and floating-point (double) types Unary and binary operators Precedence Associativity

More information

ENGINEERING 1020 Introduction to Computer Programming M A Y 2 6, R E Z A S H A H I D I

ENGINEERING 1020 Introduction to Computer Programming M A Y 2 6, R E Z A S H A H I D I ENGINEERING 1020 Introduction to Computer Programming M A Y 2 6, 2 0 1 0 R E Z A S H A H I D I Today s class Constants Assignment statement Parameters and calling functions Expressions Mixed precision

More information

GENERAL MATH FOR PASSING

GENERAL MATH FOR PASSING GENERAL MATH FOR PASSING Your math and problem solving skills will be a key element in achieving a passing score on your exam. It will be necessary to brush up on your math and problem solving skills.

More information

Dr. Scheme evaluates expressions so we will start by using the interactions window and asking Dr. Scheme to evaluate some expressions.

Dr. Scheme evaluates expressions so we will start by using the interactions window and asking Dr. Scheme to evaluate some expressions. 1.0 Expressions Dr. Scheme evaluates expressions so we will start by using the interactions window and asking Dr. Scheme to evaluate some expressions. Numbers are examples of primitive expressions, meaning

More information

How to Excel at Middle School Math Competitions Huasong Yin

How to Excel at Middle School Math Competitions Huasong Yin MathCounts Preparation How to Excel at Middle School Math Competitions By Huasong Yin www.jacksonareamath.com 0, Huasong Yin ALL RIGHTS RESERVED This book contains material protected under International

More information

YCL Session 4 Lesson Plan

YCL Session 4 Lesson Plan YCL Session 4 Lesson Plan Summary In this session, students will learn about functions, including the parts that make up a function, how to define and call a function, and how to use variables and expression

More information

Lesson 6: Manipulating Equations

Lesson 6: Manipulating Equations Lesson 6: Manipulating Equations Manipulating equations is probably one of the most important skills to master in a high school physics course. Although it is based on familiar (and fairly simple) math

More information

Essentials. Week by. Week. Mathmania. Algebraically Speaking. Investigate Data. Solve It!

Essentials. Week by. Week. Mathmania. Algebraically Speaking. Investigate Data. Solve It! Week by Week MATHEMATICS Essentials The surface asea, SA, of a sphere is found using the formula SA πr, where r is the radius of the sphere. Find the surface area of a glass ball with a radius of. inches.

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

Exponents. Reteach. Write each expression in exponential form (0.4)

Exponents. Reteach. Write each expression in exponential form (0.4) 9-1 Exponents You can write a number in exponential form to show repeated multiplication. A number written in exponential form has a base and an exponent. The exponent tells you how many times a number,

More information

MAT 003 Brian Killough s Instructor Notes Saint Leo University

MAT 003 Brian Killough s Instructor Notes Saint Leo University MAT 003 Brian Killough s Instructor Notes Saint Leo University Success in online courses requires self-motivation and discipline. It is anticipated that students will read the textbook and complete sample

More information

PIETRO, GIORGIO & MAX ROUNDING ESTIMATING, FACTOR TREES & STANDARD FORM

PIETRO, GIORGIO & MAX ROUNDING ESTIMATING, FACTOR TREES & STANDARD FORM PIETRO, GIORGIO & MAX ROUNDING ESTIMATING, FACTOR TREES & STANDARD FORM ROUNDING WHY DO WE ROUND? We round numbers so that it is easier for us to work with. We also round so that we don t have to write

More information

Archdiocese of Washington Catholic Schools Academic Standards Mathematics

Archdiocese of Washington Catholic Schools Academic Standards Mathematics 5 th GRADE Archdiocese of Washington Catholic Schools Standard 1 - Number Sense Students compute with whole numbers*, decimals, and fractions and understand the relationship among decimals, fractions,

More information

UNIT 3 CIRCLES AND VOLUME Lesson 5: Explaining and Applying Area and Volume Formulas Instruction

UNIT 3 CIRCLES AND VOLUME Lesson 5: Explaining and Applying Area and Volume Formulas Instruction UNIT CIRCLES AND VOLUME Prerequisite Skills This lesson requires the use of the following skills: calculating with fractions and decimals understanding operations with exponents knowing area, surface area,

More information

Post Experiment Interview Questions

Post Experiment Interview Questions Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid

More information

What is a Fraction? Fractions. One Way To Remember Numerator = North / 16. Example. What Fraction is Shaded? 9/16/16. Fraction = Part of a Whole

What is a Fraction? Fractions. One Way To Remember Numerator = North / 16. Example. What Fraction is Shaded? 9/16/16. Fraction = Part of a Whole // Fractions Pages What is a Fraction? Fraction Part of a Whole Top Number? Bottom Number? Page Numerator tells how many parts you have Denominator tells how many parts are in the whole Note: the fraction

More information

Note: Please use the actual date you accessed this material in your citation.

Note: Please use the actual date you accessed this material in your citation. MIT OpenCourseWare http://ocw.mit.edu 18.06 Linear Algebra, Spring 2005 Please use the following citation format: Gilbert Strang, 18.06 Linear Algebra, Spring 2005. (Massachusetts Institute of Technology:

More information

More Complicated Recursion CMPSC 122

More Complicated Recursion CMPSC 122 More Complicated Recursion CMPSC 122 Now that we've gotten a taste of recursion, we'll look at several more examples of recursion that are special in their own way. I. Example with More Involved Arithmetic

More information

Math Fundamentals for Statistics (Math 52) Unit 4: Multiplication. Scott Fallstrom and Brent Pickett The How and Whys Guys.

Math Fundamentals for Statistics (Math 52) Unit 4: Multiplication. Scott Fallstrom and Brent Pickett The How and Whys Guys. Math Fundamentals for Statistics (Math 52) Unit 4: Multiplication Scott Fallstrom and Brent Pickett The How and Whys Guys Unit 4 Page 1 4.1: Multiplication of Whole Numbers Multiplication is another main

More information

Virginia Mathematics Checkpoint Assessment GEOMETRY G.14. Topic: Three-Dimensional Figures

Virginia Mathematics Checkpoint Assessment GEOMETRY G.14. Topic: Three-Dimensional Figures Virginia Mathematics Checkpoint Assessment GEOMETRY G.14 Topic: Three-Dimensional Figures Standards of Learning Blueprint Summary Reporting Category Geometry SOL Number of Items Reasoning, Lines, and G.1(a-d),

More information

Unit 4 End-of-Unit Assessment Study Guide

Unit 4 End-of-Unit Assessment Study Guide Circles Unit 4 End-of-Unit Assessment Study Guide Definitions Radius (r) = distance from the center of a circle to the circle s edge Diameter (d) = distance across a circle, from edge to edge, through

More information

6.001 Notes: Section 8.1

6.001 Notes: Section 8.1 6.001 Notes: Section 8.1 Slide 8.1.1 In this lecture we are going to introduce a new data type, specifically to deal with symbols. This may sound a bit odd, but if you step back, you may realize that everything

More information

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel.

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. Some quick tips for getting started with Maple: An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel. [Even before we start, take note of the distinction between Tet mode and

More information

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Topic 3 Introduction to Matlab Material from MATLAB for

More information

SAMLab Tip Sheet #1 Translating Mathematical Formulas Into Excel s Language

SAMLab Tip Sheet #1 Translating Mathematical Formulas Into Excel s Language Translating Mathematical Formulas Into Excel s Language Introduction Microsoft Excel is a very powerful calculator; you can use it to compute a wide variety of mathematical expressions. Before exploring

More information

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar Microsoft Excel 2007 is a spreadsheet application in the Microsoft Office Suite. A spreadsheet is an accounting program for the computer. Spreadsheets are primarily used to work with numbers and text.

More information

MITOCW watch?v=ytpjdnlu9ug

MITOCW watch?v=ytpjdnlu9ug MITOCW watch?v=ytpjdnlu9ug The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high-quality, educational resources for free.

More information

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions Variable is a letter or symbol that represents a number. Variable (algebraic)

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #23 Loops: Precedence of Operators

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #23 Loops: Precedence of Operators Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #23 Loops: Precedence of Operators This one more concept that we have to understand, before we really understand

More information

Chapter 2 Using Data. Instructor s Manual Table of Contents. At a Glance. A Guide to this Instructor s Manual:

Chapter 2 Using Data. Instructor s Manual Table of Contents. At a Glance. A Guide to this Instructor s Manual: Java Programming, Eighth Edition 2-1 Chapter 2 Using Data A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance your teaching experience through classroom

More information

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle 5 Transforming Shapes with Geometry In the teahouse one day Nasrudin announced he was selling his house. When the other patrons asked him to describe it, he brought out a brick. It s just a collection

More information

5th Grade Mathematics Essential Standards

5th Grade Mathematics Essential Standards Standard 1 Number Sense (10-20% of ISTEP/Acuity) Students compute with whole numbers*, decimals, and fractions and understand the relationship among decimals, fractions, and percents. They understand the

More information

Definition: A data structure is a way of organizing data in a computer so that it can be used efficiently.

Definition: A data structure is a way of organizing data in a computer so that it can be used efficiently. The Science of Computing I Lesson 4: Introduction to Data Structures Living with Cyber Pillar: Data Structures The need for data structures The algorithms we design to solve problems rarely do so without

More information

SEQUENCES AND SERIES Sequences CC Standard

SEQUENCES AND SERIES Sequences CC Standard N Sequences and Series, Lesson 1, Sequences (r. 2018) SEQUENCES AND SERIES Sequences CC Standard NG Standard F-IF.A.3 Recognize that sequences are functions, sometimes defined recursively, whose domain

More information

YEAR 9 AUTUMN TERM PROJECT NETS and SURFACE AREA

YEAR 9 AUTUMN TERM PROJECT NETS and SURFACE AREA YEAR 9 AUTUMN TERM PROJECT NETS and SURFACE AREA Focus of the Project The aim of this is to develop students understanding of nets, surface area and volume. The tasks below allow students to explore these

More information

My 5 th Grade Summer Math Practice Booklet

My 5 th Grade Summer Math Practice Booklet My 5 th Grade Summer Math Practice Booklet Name Number Sense 1. Write a ratio (fraction) comparing the number of rectangles to the number of triangles. Then write a ratio (fraction) comparing the number

More information

Dealing with Output. Producing Numeric Output CHAPTER 3. Task. Figure 3-1. The program in action

Dealing with Output. Producing Numeric Output CHAPTER 3. Task. Figure 3-1. The program in action CHAPTER 3 You already know all the main steps that you should take when developing a program in the C# language. In addition, you have already seen the important statement Console. WriteLine, which displays

More information

R Basics / Course Business

R Basics / Course Business R Basics / Course Business We ll be using a sample dataset in class today: CourseWeb: Course Documents " Sample Data " Week 2 Can download to your computer before class CourseWeb survey on research/stats

More information

4. Java Project Design, Input Methods

4. Java Project Design, Input Methods 4-1 4. Java Project Design, Input Methods Review and Preview You should now be fairly comfortable with creating, compiling and running simple Java projects. In this class, we continue learning new Java

More information

EMERGENCY SHELTER DESIGN STEM LEARNING AT ITS BEST

EMERGENCY SHELTER DESIGN STEM LEARNING AT ITS BEST KSB * 1 ( * KNOWLEDGE AND SKILL BUILDER) Geometric shapes student Name: Period: school: date: Hofstra University Center for Technological Literacy Simulations and Modeling for Technology Education This

More information

MITOCW watch?v=0jljzrnhwoi

MITOCW watch?v=0jljzrnhwoi MITOCW watch?v=0jljzrnhwoi The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

Direct Variations DIRECT AND INVERSE VARIATIONS 19. Name

Direct Variations DIRECT AND INVERSE VARIATIONS 19. Name DIRECT AND INVERSE VARIATIONS 19 Direct Variations Name Of the many relationships that two variables can have, one category is called a direct variation. Use the description and example of direct variation

More information

FAQ - Podium v1.4 by Jim Allen

FAQ - Podium v1.4 by Jim Allen FAQ - Podium v1.4 by Jim Allen Podium is the only plug-in to run natively within SketchUp, and the only one to have a true 'one click' photorealistic output. Although it is about as simple as you can expect

More information

CS112 Lecture: Variables, Expressions, Computation, Constants, Numeric Input-Output

CS112 Lecture: Variables, Expressions, Computation, Constants, Numeric Input-Output CS112 Lecture: Variables, Expressions, Computation, Constants, Numeric Input-Output Last revised January 12, 2006 Objectives: 1. To introduce arithmetic operators and expressions 2. To introduce variables

More information

SP 713 Slide Rule Practice for our MIT Museum visit By Alva Couch and Elizabeth Cavicchi

SP 713 Slide Rule Practice for our MIT Museum visit By Alva Couch and Elizabeth Cavicchi SP 713 Slide Rule Practice for our MIT Museum visit By Alva Couch and Elizabeth Cavicchi On your slide rule, look for the rows of short vertical marks, with numbers just above them. Notice how the spacing

More information

10.7 Surface Area and Volume of Cylinders

10.7 Surface Area and Volume of Cylinders 10.7. Surface Area and Volume of Cylinders www.ck12.org 10.7 Surface Area and Volume of Cylinders Introduction The Bean Containers Jillian s grandmother loves to cook. One day in between sewing projects,

More information

After an "Hour of Code" now what?

After an Hour of Code now what? After an "Hour Code" now what? 2016 Curtis Center Mathematics and Teaching Conference Chris Anderson Pressor and Director the Program in Computing UCLA Dept. Mathematics March 5, 2016 New push in K-12

More information

MITOCW watch?v=se4p7ivcune

MITOCW watch?v=se4p7ivcune MITOCW watch?v=se4p7ivcune The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for free. To

More information

Telling a Story Visually. Copyright 2012, Oracle. All rights reserved.

Telling a Story Visually. Copyright 2012, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn how to: Compare and define an animation and a scenario Demonstrate how to use the four problem solving steps to storyboard your animation Use

More information

Math 3 Coordinate Geometry Part 2 Graphing Solutions

Math 3 Coordinate Geometry Part 2 Graphing Solutions Math 3 Coordinate Geometry Part 2 Graphing Solutions 1 SOLVING SYSTEMS OF EQUATIONS GRAPHICALLY The solution of two linear equations is the point where the two lines intersect. For example, in the graph

More information

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials

Fundamentals. Fundamentals. Fundamentals. We build up instructions from three types of materials Fundamentals We build up instructions from three types of materials Constants Expressions Fundamentals Constants are just that, they are values that don t change as our macros are executing Fundamentals

More information

Table of Contents. Introduction to the Math Practice Series...1

Table of Contents. Introduction to the Math Practice Series...1 Table of Contents Table of Contents Introduction to the Math Practice Series...1 Common Mathematics/Geometry Symbols and Terms...2 Chapter 1: Introduction To Geometry...13 Shapes, Congruence, Similarity,

More information

Intro. Speed V Growth

Intro. Speed V Growth Intro Good code is two things. It's elegant, and it's fast. In other words, we got a need for speed. We want to find out what's fast, what's slow, and what we can optimize. First, we'll take a tour of

More information

Curriculum Catalog

Curriculum Catalog 2018-2019 Curriculum Catalog Table of Contents MATHEMATICS 800 COURSE OVERVIEW... 1 UNIT 1: THE REAL NUMBER SYSTEM... 1 UNIT 2: MODELING PROBLEMS IN INTEGERS... 3 UNIT 3: MODELING PROBLEMS WITH RATIONAL

More information

UNIT 4: LENGTH, AREA, AND VOLUME WEEK 16: Student Packet

UNIT 4: LENGTH, AREA, AND VOLUME WEEK 16: Student Packet Name Period Date UNIT 4: LENGTH, AREA, AND VOLUME WEEK 16: Student Packet 16.1 Circles: Area Establish the area formula for a circle. Apply the area formula for a circle to realistic problems. Demonstrate

More information

Troubleshooting Maple Worksheets: Common Problems

Troubleshooting Maple Worksheets: Common Problems Troubleshooting Maple Worksheets: Common Problems So you've seen plenty of worksheets that work just fine, but that doesn't always help you much when your worksheet isn't doing what you want it to. This

More information

Chapter 7 Connect Algebra to Geometry

Chapter 7 Connect Algebra to Geometry Lesson 7-1 Volume of Cylinders Page 79 Determine the volume of the cylinder. Round to the nearest tenth. V Bh V (π r ) h Volume of a cylinder The base is a circle. V π() (5) Replace r with and h with 5.

More information

S3 (3.1) N5 Volume.notebook April 30, 2018

S3 (3.1) N5 Volume.notebook April 30, 2018 Daily Practice 16.3.2018 Q1. Multiply out and simplify (3x - 2)(x 2-7x + 3) Daily Practice 19.3.2018 Q1. Multiply out and simplify (2x + 3)(x 2 + 7x + 4) Q2. Factorise fully 3x 2-75 Q2. Simplify x 3 (x

More information

Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7

Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7 Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7 Page 1 6/3/2014 Area and Perimeter of Polygons Area is the number of square units in a flat region. The formulas to

More information

Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7

Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7 Middle School Summer Review Packet for Abbott and Orchard Lake Middle School Grade 7 Page 1 6/3/2014 Area and Perimeter of Polygons Area is the number of square units in a flat region. The formulas to

More information

Tier 2: GEOMETRY INTRODUCTION TO GEOMETRY Lessons Abbreviation Key Table... 7 G1 LESSON: WHAT IS GEOMETRY?... 8 G1E... 9 G1EA...

Tier 2: GEOMETRY INTRODUCTION TO GEOMETRY Lessons Abbreviation Key Table... 7 G1 LESSON: WHAT IS GEOMETRY?... 8 G1E... 9 G1EA... Craig Hane, Ph.D., Founder Tier 2: GEOMETRY INTRODUCTION TO GEOMETRY... 6 1.1 Lessons Abbreviation Key Table... 7 G1 LESSON: WHAT IS GEOMETRY?... 8 G1E... 9 G1EA... 10 G2 LESSON: STRAIGHT LINES AND ANGLES...

More information

4. Write sets of directions for how to check for direct variation. How to check for direct variation by analyzing the graph :

4. Write sets of directions for how to check for direct variation. How to check for direct variation by analyzing the graph : Name Direct Variations There are many relationships that two variables can have. One of these relationships is called a direct variation. Use the description and example of direct variation to help you

More information

WELCOME! (download slides and.py files and follow along!) LECTURE 1

WELCOME! (download slides and.py files and follow along!) LECTURE 1 WELCOME! (download slides and.py files and follow along!) 6.0001 LECTURE 1 6.0001 LECTURE 1 1 TODAY course info what is computation python basics mathematical operations python variables and types NOTE:

More information

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 I. Logic 101 In logic, a statement or proposition is a sentence that can either be true or false. A predicate is a sentence in

More information

Chapter 2. The Midpoint Formula:

Chapter 2. The Midpoint Formula: Chapter 2 The Midpoint Formula: Sometimes you need to find the point that is exactly between two other points. For instance, you might need to find a line that bisects (divides into equal halves) a given

More information

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: #### Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 Lab partners: Lab#1 Presentation of lab reports The first thing we do is to create page headers. In Word 2007 do the following:

More information

Session 27: Fractals - Handout

Session 27: Fractals - Handout Session 27: Fractals - Handout Clouds are not spheres, mountains are not cones, coastlines are not circles, and bark is not smooth, nor does lightning travel in a straight line. Benoit Mandelbrot (1924-2010)

More information

MITOCW MIT6_172_F10_lec18_300k-mp4

MITOCW MIT6_172_F10_lec18_300k-mp4 MITOCW MIT6_172_F10_lec18_300k-mp4 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high quality educational resources for

More information

Volume by Slicing (Disks & Washers)

Volume by Slicing (Disks & Washers) Volume by Slicing (Disks & Washers) SUGGESTED REFERENCE MATERIAL: As you work through the problems listed below, you should reference Chapter 6.2 of the recommended textbook (or the equivalent chapter

More information

You may use a calculator for these practice questions. You may

You may use a calculator for these practice questions. You may 660 Math Smart Practice Questions You may use a calculator for these practice questions. You may not know all the math to complete these practice questions yet, but try to think them through! 1. Eric lives

More information

Microsoft Office Excel 2010 Extra

Microsoft Office Excel 2010 Extra Microsoft Office Excel 2010 Extra Excel Formulas İçindekiler Microsoft Office... 1 A.Introduction... 3 1.About This Tutorial... 3 About this tutorial... 3 B.Formula and Function Basics... 4 2.Simple Formulas...

More information

2017 Summer Review for Students Entering Pre-Algebra 7 & Pre-Algebra 8

2017 Summer Review for Students Entering Pre-Algebra 7 & Pre-Algebra 8 1. Area and Perimeter of Polygons 2. Multiple Representations of Portions 3. Multiplying Fractions and Decimals 4. Order of Operations 5. Writing and Evaluating Algebraic Expressions 6. Simplifying Expressions

More information

Lecture 3. Input, Output and Data Types

Lecture 3. Input, Output and Data Types Lecture 3 Input, Output and Data Types Goals for today Variable Types Integers, Floating-Point, Strings, Booleans Conversion between types Operations on types Input/Output Some ways of getting input, and

More information

(Refer Slide Time 3:31)

(Refer Slide Time 3:31) Digital Circuits and Systems Prof. S. Srinivasan Department of Electrical Engineering Indian Institute of Technology Madras Lecture - 5 Logic Simplification In the last lecture we talked about logic functions

More information

CS112 Lecture: Working with Numbers

CS112 Lecture: Working with Numbers CS112 Lecture: Working with Numbers Last revised January 30, 2008 Objectives: 1. To introduce arithmetic operators and expressions 2. To expand on accessor methods 3. To expand on variables, declarations

More information