Part I. The Picture class

Size: px
Start display at page:

Download "Part I. The Picture class"

Transcription

1 CS 161 LAB 5 This lab will have two parts. In the first part, we will create a class to automate the drawing of the robot from the second lab. For the second part, we will begin a ClunkyCalculator class that will mimic a simple calculator using BlueJ s ability to manually call methods. We will do half of the Calculator class this week and finish it as part of next week s lab. To begin, make a Lab5 folder in your CS161 folder. The two projects you make will go in this folder. Part I As part of the second lab, you were to save the final settings for the robot picture. Find those settings as we will have the computer draw the robot for us. From your Lab2 folder, copy the shapes2 project and paste it into your Lab5 folder. Now open this project in BlueJ. The Picture class Once BlueJ has open this project, select the new class option. Call this class Picture, and when the editor opens with the skeleton class, put your name and the date in the appropriate locations and change the documentation at the beginning of the class to state that it will automatically draw the robot picture from the second lab. The class instance variables Since this class will draw the robot picture, it needs a class instance variable for each of the components. This means the class must have two objects of type Square, three objects of type Rect, two objects of type Triangle, and two objects of type Circle. Rather that naming the objects square1, square2, etc, as BlueJ does, name each object for its role in the picture: Name one of the Square objects head and the other body; name the Rect objects neck, leftarm, and rightarm; name the Triangle objects leftleg and rightleg; and the Circle objects leftwheel and rightwheel. The Constructor The constructor for this class is not very complex. It needs to initialize the nine objects using the new operator. So, for example, one line in the constructor is the following: head = new Square(); Remember that the types of these objects have already been declared at the beginning of the class. DO NOT put the type before the object name; i.e. do NOT write: Square head = new Square(); If you do, you will make the object head a local variable. This means that the class instance variable head would be undefined outside of the constructor. CS 161 Page 1 of 8 Lab 5

2 CS 161 Page 2 of 8 Lab 5

3 The Method drawhead We will make a separate method to draw each of the parts of the robot. While this means there will be nine methods, plus a tenth method that will put it all together, each method will be rather short, simple, and will perform only one action. The drawhead method is public, void, and takes no parameters. Be sure to add the appropriate documentation to the beginning of this method that explains what action the method performs. The first action it takes is to make head visible. If you have forgotten the names of the methods in the Square class, you might want to open the editor for the Square class and switch to the Documentation view. For example, a portion of the Documentation view of the Square class looks like the following: This not only tells you the names of the methods in each class, but what information, if any, you must give to a method to have it perform its actions. Also remember that each method call is an external method call. It must be prefixed with an object name using the dot notation. So, to make head visible, the statement is: head.makevisible(); After head is made visible, it must be resized. Call the appropriate method, passing in the size that you saved from Lab2. CS 161 Page 3 of 8 Lab 5

4 Next, head must be moved to the proper X-Y location. To move the objects to their proper location, use the methods slowmovehorizontal and slowmovevertical. To use these methods, however, you will need to do some calculations. The various methods to move an object in the Square class add their parameter to either the current X-coordinate or the current Y- coordinate. What you most likely saved from Lab2 was the final X and Y-coordinates. To get the proper value to pass to the move methods, you must use the editor to look at the code for the Square class to find the initial X and Y positions and subtract these numbers from the final X and Y positions. It is the difference between the starting and ending coordinates that represents the distance each object must move, and it is this distance that must be passed to move methods. Of course, if you really wanted to, there is no reason why you could not add accessor methods for the X and Y coordinates to the various classes in this project. Then, using the accessor methods, you could get the initial positions and use subtraction statements with your final positions, saving the results in local variables. These variables could be used as actual parameters in the methods that move the objects. This is just a thought, and it is certainly not required for this lab. To review, the steps the drawhead method as well as the other drawing methods must take are the following. 1. Make the object visible. 2. Resize the object to the size you saved from Lab2. 3. Move the object horizontally and vertically to the coordinates that you saved from Lab2. Once you have completed the drawhead method, compile the Picture class, make an object of the class and call the drawhead method. Does it work correctly? If not, fix it before going on to another method. The Other draw Methods There are eight other draw methods to create, one for each part of the robot s body. Call these methods drawbody, drawneck, drawrightarm, and so on. Each of these methods follows the same pattern as the drawhead method. After you finish each method, test the method and correct any errors in the method before you start the next method. In addition, add the appropriate documentation at the beginning of each method. The makepicture method The last method to add is a makepicture method. This method just contains nine statements. Each statement is an internal method call to one of the draw methods, for example: drawhead(); Thus, calling the makepicture method will cause the robot to be drawn. CS 161 Page 4 of 8 Lab 5

5 When the makepicture method works correctly and draws the robot picture, make a printout of the class. Be sure that each method has the appropriate documentation. Then demonstrate the makepicture method for your lab instructor. Part II: The ClunkyCalculator Now for the second project. The purpose of this project is to make some methods that use the basic mathematical and relational operators, practice using local variables, and gain more experience with the conditional if-else statement. One design of computer CPU s is known as an accumulator machine (or a one-address machine). This type of CPU has a special register called the accumulator. Any arithmetic operation, such as adding two values, uses the contents of the accumulator as one of the operands and the result of the operation is stored back in the accumulator. If you are interested, the CPU that was in the original Apple II computer the MOS Technology 6502 processor was an accumulator machine. This is the type of calculator we are going to create in this project. Using BlueJ, create a new project in your Lab5 folder, and call the project clunky-calculator. Then create a new class, which will be called Calculator. This class will have a single field (class instance variable), which is an int and is called accumulator. The Constructor This class has one constructor. The constructor takes no parameters, and it simply assigns accumulator an initial value of zero. The Method clear This is a mutator method that has two statements in its body. The first statement assigns the accumulator a zero and then the second statement is similar to: System.out.println( Accumulator = + accumulator ); The Method loadaccumulator This is another mutator method, but one that takes a parameter. Its actions are to assign the accumulator the value of its parameter, and then it prints the contents of the accumulator to the terminal window using a similar statement to that in the previous method. The Arithmetic Methods Next, we will create five methods to perform the arithmetic operations of add ( + ), subtract ( - ), multiply ( * ), divide ( / ), and mod ( % ). These methods will be quite similar, so you CS 161 Page 5 of 8 Lab 5

6 might find it easier to write the first method, then use copy and paste for the other methods because there will only be slight changes. The Method add This method is a void method, and it takes a single parameter. In the body of the method, a local variable is declared and this variable is assigned the value of accumulator. The reason for this local variable is that the value of accumulator will be changed, but we want to record its value before the change so that it can be printed out. After the contents of accumulator is saved in the local variable, add accumulator with the parameter and assign the result back to accumulator. Then a statement is printed to the terminal window that shows the original value of the accumulator (saved in the local variable), a plus sign, the value of the parameter, an equal sign, and the new value of the accumulator. Thus, if the accumulator originally contained the value 3 and the add method was called with a parameter of 5, the statement that appears in the terminal window should be: = 8 The other 4 methods are similar to the add method. The difference, of course, is the operation each method performs, and the operator that appears in the statement printed to the terminal window. For example, I started with an accumulator containing 0. Then I called add with a parameter of 20, subtract with a parameter of 5, multiply with a parameter of 3, divide with a parameter of 9, and mod with a parameter of 2. Note that I am naming each method with the name of the operation it is performing. My terminal window then contained the following. Notice that in the display the starting value of the accumulator is always the leftmost digit, the parameter to the method is the next digit, and the resulting value of the accumulator is the rightmost digit. The Method compute Now we will add one more method. This method is called compute. It is a void method and takes no parameters. Its purpose is to allow us to test our calculator by placing a sequence of method calls inside this method, compile our class, create an object of the class, and call the compute method. The Final Test CS 161 Page 6 of 8 Lab 5

7 When all your methods are working correctly, place the following sequence of method calls in your compute method. loadaccumulator( 15 ); add( 20 ); subtract( 30 ); multiply( 8 ); divide( 4 ); mod( 4 ); subtract( 5 ); clear(); Now, compile your class, create an object of the class, and call the compute method. If you get the following terminal window: Show this to your lab instructor, give her a printout of your class, and you are done for this week. Next week we will add more methods to this class. The methods that we will add will implement the relational operators. Note, as an aid, I have attached a partial copy of my documentation for this class. CS 161 Page 7 of 8 Lab 5

8 Note: This lab was originally written by Dr. Broeg. CS 161 Page 8 of 8 Lab 5

1 Description of The Simpletron

1 Description of The Simpletron Simulating The Simpletron Computer 50 points 1 Description of The Simpletron In this assignment you will write a program to simulate a fictional computer that we will call the Simpletron. As its name implies

More information

3.1. RATIONAL EXPRESSIONS

3.1. RATIONAL EXPRESSIONS 3.1. RATIONAL EXPRESSIONS RATIONAL NUMBERS In previous courses you have learned how to operate (do addition, subtraction, multiplication, and division) on rational numbers (fractions). Rational numbers

More information

Determine If An Equation Represents a Function

Determine If An Equation Represents a Function Question : What is a linear function? The term linear function consists of two parts: linear and function. To understand what these terms mean together, we must first understand what a function is. The

More information

Computer Science 281 Binary and Hexadecimal Review

Computer Science 281 Binary and Hexadecimal Review Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two

More information

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Digital Logic II May, I before starting the today s lecture

More information

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes The Scalar Product 9.4 Introduction There are two kinds of multiplication involving vectors. The first is known as the scalar product or dot product. This is so-called because when the scalar product of

More information

Integers (pages 294 298)

Integers (pages 294 298) A Integers (pages 294 298) An integer is any number from this set of the whole numbers and their opposites: { 3, 2,, 0,, 2, 3, }. Integers that are greater than zero are positive integers. You can write

More information

for the Bill Hanlon bill@hanlonmath.com

for the Bill Hanlon bill@hanlonmath.com Strategies for Learning the Math Facts Bill Hanlon bill@hanlonmath.com The more sophisticated mental operations in mathematics of analysis, synthesis, and evaluation are impossible without rapid and accurate

More information

Understanding class definitions

Understanding class definitions OFWJ_C02.QXD 2/3/06 2:28 pm Page 17 CHAPTER 2 Understanding class definitions Main concepts discussed in this chapter: fields methods (accessor, mutator) constructors assignment and conditional statement

More information

Pocantico Hills School District Grade 1 Math Curriculum Draft

Pocantico Hills School District Grade 1 Math Curriculum Draft Pocantico Hills School District Grade 1 Math Curriculum Draft Patterns /Number Sense/Statistics Content Strands: Performance Indicators 1.A.1 Determine and discuss patterns in arithmetic (what comes next

More information

1.2 Linear Equations and Rational Equations

1.2 Linear Equations and Rational Equations Linear Equations and Rational Equations Section Notes Page In this section, you will learn how to solve various linear and rational equations A linear equation will have an variable raised to a power of

More information

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10 Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base- system. When you

More information

Scheduling. Getting Started. Scheduling 79

Scheduling. Getting Started. Scheduling 79 Scheduling 9 Scheduling An event planner has to juggle many workers completing different tasks, some of which must be completed before others can begin. For example, the banquet tables would need to be

More information

Section 1.1 Linear Equations: Slope and Equations of Lines

Section 1.1 Linear Equations: Slope and Equations of Lines Section. Linear Equations: Slope and Equations of Lines Slope The measure of the steepness of a line is called the slope of the line. It is the amount of change in y, the rise, divided by the amount of

More information

Pre Calculus Math 40S: Explained!

Pre Calculus Math 40S: Explained! www.math0s.com 97 Conics Lesson Part I The Double Napped Cone Conic Sections: There are main conic sections: circle, ellipse, parabola, and hyperbola. It is possible to create each of these shapes by passing

More information

Section 1.5 Exponents, Square Roots, and the Order of Operations

Section 1.5 Exponents, Square Roots, and the Order of Operations Section 1.5 Exponents, Square Roots, and the Order of Operations Objectives In this section, you will learn to: To successfully complete this section, you need to understand: Identify perfect squares.

More information

Paper 1. Mathematics test. Calculator not allowed. First name. Last name. School KEY STAGE TIER

Paper 1. Mathematics test. Calculator not allowed. First name. Last name. School KEY STAGE TIER Ma KEY STAGE 3 TIER 4 6 2005 Mathematics test Paper 1 Calculator not allowed Please read this page, but do not open your booklet until your teacher tells you to start. Write your name and the name of your

More information

Mathematics Success Grade 6

Mathematics Success Grade 6 T276 Mathematics Success Grade 6 [OBJECTIVE] The student will add and subtract with decimals to the thousandths place in mathematical and real-world situations. [PREREQUISITE SKILLS] addition and subtraction

More information

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms PROG0101 FUNDAMENTALS OF PROGRAMMING Chapter 3 1 Introduction to A sequence of instructions. A procedure or formula for solving a problem. It was created mathematician, Mohammed ibn-musa al-khwarizmi.

More information

YOU MUST BE ABLE TO DO THE FOLLOWING PROBLEMS WITHOUT A CALCULATOR!

YOU MUST BE ABLE TO DO THE FOLLOWING PROBLEMS WITHOUT A CALCULATOR! DETAILED SOLUTIONS AND CONCEPTS - DECIMALS AND WHOLE NUMBERS Prepared by Ingrid Stewart, Ph.D., College of Southern Nevada Please Send Questions and Comments to ingrid.stewart@csn.edu. Thank you! YOU MUST

More information

Examples of Tasks from CCSS Edition Course 3, Unit 5

Examples of Tasks from CCSS Edition Course 3, Unit 5 Examples of Tasks from CCSS Edition Course 3, Unit 5 Getting Started The tasks below are selected with the intent of presenting key ideas and skills. Not every answer is complete, so that teachers can

More information

Let s put together a Manual Processor

Let s put together a Manual Processor Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce

More information

JobTestPrep's Numeracy Review Decimals & Percentages

JobTestPrep's Numeracy Review Decimals & Percentages JobTestPrep's Numeracy Review Decimals & Percentages 1 Table of contents What is decimal? 3 Converting fractions to decimals 4 Converting decimals to fractions 6 Percentages 6 Adding and subtracting decimals

More information

1 One Dimensional Horizontal Motion Position vs. time Velocity vs. time

1 One Dimensional Horizontal Motion Position vs. time Velocity vs. time PHY132 Experiment 1 One Dimensional Horizontal Motion Position vs. time Velocity vs. time One of the most effective methods of describing motion is to plot graphs of distance, velocity, and acceleration

More information

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Problem 3 If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C? Suggested Questions to ask students about Problem 3 The key to this question

More information

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions CS101 Lecture 26: Low Level Programming John Magee 30 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What did we do last time? How can we control the computer s circuits? How

More information

Section 4.1 Rules of Exponents

Section 4.1 Rules of Exponents Section 4.1 Rules of Exponents THE MEANING OF THE EXPONENT The exponent is an abbreviation for repeated multiplication. The repeated number is called a factor. x n means n factors of x. The exponent tells

More information

Math Workshop October 2010 Fractions and Repeating Decimals

Math Workshop October 2010 Fractions and Repeating Decimals Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,

More information

Financial Mathematics

Financial Mathematics Financial Mathematics For the next few weeks we will study the mathematics of finance. Apart from basic arithmetic, financial mathematics is probably the most practical math you will learn. practical in

More information

Figure 1.1 Vector A and Vector F

Figure 1.1 Vector A and Vector F CHAPTER I VECTOR QUANTITIES Quantities are anything which can be measured, and stated with number. Quantities in physics are divided into two types; scalar and vector quantities. Scalar quantities have

More information

Part 1 Foundations of object orientation

Part 1 Foundations of object orientation OFWJ_C01.QXD 2/3/06 2:14 pm Page 1 Part 1 Foundations of object orientation OFWJ_C01.QXD 2/3/06 2:14 pm Page 2 1 OFWJ_C01.QXD 2/3/06 2:14 pm Page 3 CHAPTER 1 Objects and classes Main concepts discussed

More information

6.4 Normal Distribution

6.4 Normal Distribution Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under

More information

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite ALGEBRA Pupils should be taught to: Generate and describe sequences As outcomes, Year 7 pupils should, for example: Use, read and write, spelling correctly: sequence, term, nth term, consecutive, rule,

More information

Numerator Denominator

Numerator Denominator Fractions A fraction is any part of a group, number or whole. Fractions are always written as Numerator Denominator A unitary fraction is one where the numerator is always 1 e.g 1 1 1 1 1...etc... 2 3

More information

LINEAR INEQUALITIES. less than, < 2x + 5 x 3 less than or equal to, greater than, > 3x 2 x 6 greater than or equal to,

LINEAR INEQUALITIES. less than, < 2x + 5 x 3 less than or equal to, greater than, > 3x 2 x 6 greater than or equal to, LINEAR INEQUALITIES When we use the equal sign in an equation we are stating that both sides of the equation are equal to each other. In an inequality, we are stating that both sides of the equation are

More information

In this Chapter you ll learn:

In this Chapter you ll learn: Now go, write it before them in a table, and note it in a book. Isaiah 30:8 To go beyond is as wrong as to fall short. Confucius Begin at the beginning, and go on till you come to the end: then stop. Lewis

More information

IV. ALGEBRAIC CONCEPTS

IV. ALGEBRAIC CONCEPTS IV. ALGEBRAIC CONCEPTS Algebra is the language of mathematics. Much of the observable world can be characterized as having patterned regularity where a change in one quantity results in changes in other

More information

Notes on Assembly Language

Notes on Assembly Language Notes on Assembly Language Brief introduction to assembly programming The main components of a computer that take part in the execution of a program written in assembly code are the following: A set of

More information

Graphing Linear Equations

Graphing Linear Equations Graphing Linear Equations I. Graphing Linear Equations a. The graphs of first degree (linear) equations will always be straight lines. b. Graphs of lines can have Positive Slope Negative Slope Zero slope

More information

Accuplacer Arithmetic Study Guide

Accuplacer Arithmetic Study Guide Accuplacer Arithmetic Study Guide Section One: Terms Numerator: The number on top of a fraction which tells how many parts you have. Denominator: The number on the bottom of a fraction which tells how

More information

Stupid Divisibility Tricks

Stupid Divisibility Tricks Stupid Divisibility Tricks 101 Ways to Stupefy Your Friends Appeared in Math Horizons November, 2006 Marc Renault Shippensburg University Mathematics Department 1871 Old Main Road Shippensburg, PA 17013

More information

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material

More information

Multiplying and Dividing Signed Numbers. Finding the Product of Two Signed Numbers. (a) (3)( 4) ( 4) ( 4) ( 4) 12 (b) (4)( 5) ( 5) ( 5) ( 5) ( 5) 20

Multiplying and Dividing Signed Numbers. Finding the Product of Two Signed Numbers. (a) (3)( 4) ( 4) ( 4) ( 4) 12 (b) (4)( 5) ( 5) ( 5) ( 5) ( 5) 20 SECTION.4 Multiplying and Dividing Signed Numbers.4 OBJECTIVES 1. Multiply signed numbers 2. Use the commutative property of multiplication 3. Use the associative property of multiplication 4. Divide signed

More information

OA3-10 Patterns in Addition Tables

OA3-10 Patterns in Addition Tables OA3-10 Patterns in Addition Tables Pages 60 63 Standards: 3.OA.D.9 Goals: Students will identify and describe various patterns in addition tables. Prior Knowledge Required: Can add two numbers within 20

More information

MATH 60 NOTEBOOK CERTIFICATIONS

MATH 60 NOTEBOOK CERTIFICATIONS MATH 60 NOTEBOOK CERTIFICATIONS Chapter #1: Integers and Real Numbers 1.1a 1.1b 1.2 1.3 1.4 1.8 Chapter #2: Algebraic Expressions, Linear Equations, and Applications 2.1a 2.1b 2.1c 2.2 2.3a 2.3b 2.4 2.5

More information

Lecture 8 : Coordinate Geometry. The coordinate plane The points on a line can be referenced if we choose an origin and a unit of 20

Lecture 8 : Coordinate Geometry. The coordinate plane The points on a line can be referenced if we choose an origin and a unit of 20 Lecture 8 : Coordinate Geometry The coordinate plane The points on a line can be referenced if we choose an origin and a unit of 0 distance on the axis and give each point an identity on the corresponding

More information

16-bit ALU, Register File and Memory Write Interface

16-bit ALU, Register File and Memory Write Interface CS M152B Fall 2002 Project 2 16-bit ALU, Register File and Memory Write Interface Suggested Due Date: Monday, October 21, 2002 Actual Due Date determined by your Lab TA This project will take much longer

More information

The Function Game: Can You Guess the Secret?

The Function Game: Can You Guess the Secret? The Function Game: Can You Guess the Secret? Copy the input and output numbers for each secret given by your teacher. Write your guess for what is happening to the input number to create the output number

More information

EC 362 Problem Set #2

EC 362 Problem Set #2 EC 362 Problem Set #2 1) Using Single Precision IEEE 754, what is FF28 0000? 2) Suppose the fraction enhanced of a processor is 40% and the speedup of the enhancement was tenfold. What is the overall speedup?

More information

Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem.

Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem. Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem. Solve word problems that call for addition of three whole numbers

More information

Number Sense and Operations

Number Sense and Operations Number Sense and Operations representing as they: 6.N.1 6.N.2 6.N.3 6.N.4 6.N.5 6.N.6 6.N.7 6.N.8 6.N.9 6.N.10 6.N.11 6.N.12 6.N.13. 6.N.14 6.N.15 Demonstrate an understanding of positive integer exponents

More information

Mathematics Navigator. Misconceptions and Errors

Mathematics Navigator. Misconceptions and Errors Mathematics Navigator Misconceptions and Errors Introduction In this Guide Misconceptions and errors are addressed as follows: Place Value... 1 Addition and Subtraction... 4 Multiplication and Division...

More information

Session 7 Fractions and Decimals

Session 7 Fractions and Decimals Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,

More information

Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers?

Basic Formulas in Excel. Why use cell names in formulas instead of actual numbers? Understanding formulas Basic Formulas in Excel Formulas are placed into cells whenever you want Excel to add, subtract, multiply, divide or do other mathematical calculations. The formula should be placed

More information

0.8 Rational Expressions and Equations

0.8 Rational Expressions and Equations 96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

More information

Arithmetic 1 Progress Ladder

Arithmetic 1 Progress Ladder Arithmetic 1 Progress Ladder Maths Makes Sense Foundation End-of-year objectives page 2 Maths Makes Sense 1 2 End-of-block objectives page 3 Maths Makes Sense 3 4 End-of-block objectives page 4 Maths Makes

More information

Chapter 5 Instructor's Manual

Chapter 5 Instructor's Manual The Essentials of Computer Organization and Architecture Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003 Chapter 5 Instructor's Manual Chapter Objectives Chapter 5, A Closer Look at Instruction

More information

Order of Operations More Essential Practice

Order of Operations More Essential Practice Order of Operations More Essential Practice We will be simplifying expressions using the order of operations in this section. Automatic Skill: Order of operations needs to become an automatic skill. Failure

More information

Vocabulary Cards and Word Walls Revised: June 29, 2011

Vocabulary Cards and Word Walls Revised: June 29, 2011 Vocabulary Cards and Word Walls Revised: June 29, 2011 Important Notes for Teachers: The vocabulary cards in this file match the Common Core, the math curriculum adopted by the Utah State Board of Education,

More information

Indicator 2: Use a variety of algebraic concepts and methods to solve equations and inequalities.

Indicator 2: Use a variety of algebraic concepts and methods to solve equations and inequalities. 3 rd Grade Math Learning Targets Algebra: Indicator 1: Use procedures to transform algebraic expressions. 3.A.1.1. Students are able to explain the relationship between repeated addition and multiplication.

More information

Paper 1. Calculator not allowed. Mathematics test. First name. Last name. School. Remember KEY STAGE 3 TIER 6 8

Paper 1. Calculator not allowed. Mathematics test. First name. Last name. School. Remember KEY STAGE 3 TIER 6 8 Ma KEY STAGE 3 Mathematics test TIER 6 8 Paper 1 Calculator not allowed First name Last name School 2009 Remember The test is 1 hour long. You must not use a calculator for any question in this test. You

More information

Lies My Calculator and Computer Told Me

Lies My Calculator and Computer Told Me Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing

More information

The Point-Slope Form

The Point-Slope Form 7. The Point-Slope Form 7. OBJECTIVES 1. Given a point and a slope, find the graph of a line. Given a point and the slope, find the equation of a line. Given two points, find the equation of a line y Slope

More information

To Evaluate an Algebraic Expression

To Evaluate an Algebraic Expression 1.5 Evaluating Algebraic Expressions 1.5 OBJECTIVES 1. Evaluate algebraic expressions given any signed number value for the variables 2. Use a calculator to evaluate algebraic expressions 3. Find the sum

More information

Elements of a graph. Click on the links below to jump directly to the relevant section

Elements of a graph. Click on the links below to jump directly to the relevant section Click on the links below to jump directly to the relevant section Elements of a graph Linear equations and their graphs What is slope? Slope and y-intercept in the equation of a line Comparing lines on

More information

Sunny Hills Math Club Decimal Numbers Lesson 4

Sunny Hills Math Club Decimal Numbers Lesson 4 Are you tired of finding common denominators to add fractions? Are you tired of converting mixed fractions into improper fractions, just to multiply and convert them back? Are you tired of reducing fractions

More information

FIRST GRADE MATH Summer 2011

FIRST GRADE MATH Summer 2011 Standards Summer 2011 1 OA.1 Use addition and subtraction within 20 to solve word problems involving situations of adding to, taking from, putting together, taking apart, and comparing, with unknowns in

More information

Year 9 set 1 Mathematics notes, to accompany the 9H book.

Year 9 set 1 Mathematics notes, to accompany the 9H book. Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H

More information

CNCTRAIN OVERVIEW CNC Simulation Systems 1995 2008

CNCTRAIN OVERVIEW CNC Simulation Systems 1995 2008 CNCTRAIN OVERVIEW CNC Simulation Systems 1995 2008 p2 Table of Contents Getting Started 4 Select a control system 5 Setting the Best Screen Layout 6 Loading Cnc Files 7 Simulation Modes 9 Running the Simulation

More information

Custom Linetypes (.LIN)

Custom Linetypes (.LIN) Custom Linetypes (.LIN) AutoCAD provides the ability to create custom linetypes or to adjust the linetypes supplied with the system during installation. Linetypes in AutoCAD can be classified into two

More information

Mathematical goals. Starting points. Materials required. Time needed

Mathematical goals. Starting points. Materials required. Time needed Level A0 of challenge: D A0 Mathematical goals Starting points Materials required Time needed Connecting perpendicular lines To help learners to: identify perpendicular gradients; identify, from their

More information

The Euclidean Algorithm

The Euclidean Algorithm The Euclidean Algorithm A METHOD FOR FINDING THE GREATEST COMMON DIVISOR FOR TWO LARGE NUMBERS To be successful using this method you have got to know how to divide. If this is something that you have

More information

Udacity cs101: Building a Search Engine. Extracting a Link

Udacity cs101: Building a Search Engine. Extracting a Link Udacity cs101: Building a Search Engine Unit 1: How to get started: your first program Extracting a Link Introducing the Web Crawler (Video: Web Crawler)... 2 Quiz (Video: First Quiz)...2 Programming (Video:

More information

EE6-5 Solving Equations with Balances Pages 77 78

EE6-5 Solving Equations with Balances Pages 77 78 EE6-5 Solving Equations with Balances Pages 77 78 STANDARDS 6.EE.B.5, 6.EE.B.6 Goals Students will use pictures to model and solve equations. Vocabulary balance equation expression sides (of an equation)

More information

7.4A/7.4B STUDENT ACTIVITY #1

7.4A/7.4B STUDENT ACTIVITY #1 7.4A/7.4B STUDENT ACTIVITY #1 Write a formula that could be used to find the radius of a circle, r, given the circumference of the circle, C. The formula in the Grade 7 Mathematics Chart that relates the

More information

Colour by Numbers Image Representation

Colour by Numbers Image Representation Activity 2 Colour by Numbers Image Representation Summary Computers store drawings, photographs and other pictures using only numbers. The following activity demonstrates how they can do this. Curriculum

More information

Graphing - Slope-Intercept Form

Graphing - Slope-Intercept Form 2.3 Graphing - Slope-Intercept Form Objective: Give the equation of a line with a known slope and y-intercept. When graphing a line we found one method we could use is to make a table of values. However,

More information

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89 by Joseph Collison Copyright 2000 by Joseph Collison All rights reserved Reproduction or translation of any part of this work beyond that permitted by Sections

More information

2. Select Point B and rotate it by 15 degrees. A new Point B' appears. 3. Drag each of the three points in turn.

2. Select Point B and rotate it by 15 degrees. A new Point B' appears. 3. Drag each of the three points in turn. In this activity you will use Sketchpad s Iterate command (on the Transform menu) to produce a spiral design. You ll also learn how to use parameters, and how to create animation action buttons for parameters.

More information

Unit 6 Number and Operations in Base Ten: Decimals

Unit 6 Number and Operations in Base Ten: Decimals Unit 6 Number and Operations in Base Ten: Decimals Introduction Students will extend the place value system to decimals. They will apply their understanding of models for decimals and decimal notation,

More information

MATHEMATICS. Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples. Equipment. MathSphere

MATHEMATICS. Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples. Equipment. MathSphere MATHEMATICS Y5 Multiplication and Division 5330 Square numbers, prime numbers, factors and multiples Paper, pencil, ruler. Equipment MathSphere 5330 Square numbers, prime numbers, factors and multiples

More information

Toothpick Squares: An Introduction to Formulas

Toothpick Squares: An Introduction to Formulas Unit IX Activity 1 Toothpick Squares: An Introduction to Formulas O V E R V I E W Rows of squares are formed with toothpicks. The relationship between the number of squares in a row and the number of toothpicks

More information

MACHINE INSTRUCTIONS AND PROGRAMS

MACHINE INSTRUCTIONS AND PROGRAMS CHAPTER 2 MACHINE INSTRUCTIONS AND PROGRAMS CHAPTER OBJECTIVES In this chapter you will learn about: Machine instructions and program execution, including branching and subroutine call and return operations

More information

Introduction to Programming (in C++) Loops. Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC

Introduction to Programming (in C++) Loops. Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC Introduction to Programming (in C++) Loops Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC Example Assume the following specification: Input: read a number N > 0 Output:

More information

Rules of Exponents. Math at Work: Motorcycle Customization OUTLINE CHAPTER

Rules of Exponents. Math at Work: Motorcycle Customization OUTLINE CHAPTER Rules of Exponents CHAPTER 5 Math at Work: Motorcycle Customization OUTLINE Study Strategies: Taking Math Tests 5. Basic Rules of Exponents Part A: The Product Rule and Power Rules Part B: Combining the

More information

Example. Introduction to Programming (in C++) Loops. The while statement. Write the numbers 1 N. Assume the following specification:

Example. Introduction to Programming (in C++) Loops. The while statement. Write the numbers 1 N. Assume the following specification: Example Introduction to Programming (in C++) Loops Assume the following specification: Input: read a number N > 0 Output: write the sequence 1 2 3 N (one number per line) Jordi Cortadella, Ricard Gavaldà,

More information

Named Memory Slots. Properties. CHAPTER 16 Programming Your App s Memory

Named Memory Slots. Properties. CHAPTER 16 Programming Your App s Memory CHAPTER 16 Programming Your App s Memory Figure 16-1. Just as people need to remember things, so do apps. This chapter examines how you can program an app to remember information. When someone tells you

More information

Section 1.4 Place Value Systems of Numeration in Other Bases

Section 1.4 Place Value Systems of Numeration in Other Bases Section.4 Place Value Systems of Numeration in Other Bases Other Bases The Hindu-Arabic system that is used in most of the world today is a positional value system with a base of ten. The simplest reason

More information

WSMA Decimal Numbers Lesson 4

WSMA Decimal Numbers Lesson 4 Thousands Hundreds Tens Ones Decimal Tenths Hundredths Thousandths WSMA Decimal Numbers Lesson 4 Are you tired of finding common denominators to add fractions? Are you tired of converting mixed fractions

More information

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2 4 (4-) Chapter 4 Polynomials and Eponents P( r) 0 ( r) dollars. Which law of eponents can be used to simplify the last epression? Simplify it. P( r) 7. CD rollover. Ronnie invested P dollars in a -year

More information

Base Conversion written by Cathy Saxton

Base Conversion written by Cathy Saxton Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,

More information

MATHEMATICS: REPEATING AND GROWING PATTERNS First Grade. Kelsey McMahan. Winter 2012 Creative Learning Experiences

MATHEMATICS: REPEATING AND GROWING PATTERNS First Grade. Kelsey McMahan. Winter 2012 Creative Learning Experiences MATHEMATICS: REPEATING AND GROWING PATTERNS Kelsey McMahan Winter 2012 Creative Learning Experiences Without the arts, education is ineffective. Students learn more and remember it longer when they are

More information

DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses.

DESCRIPTIVE STATISTICS. The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses. DESCRIPTIVE STATISTICS The purpose of statistics is to condense raw data to make it easier to answer specific questions; test hypotheses. DESCRIPTIVE VS. INFERENTIAL STATISTICS Descriptive To organize,

More information

Using Linear Programming in Real-Life Problems

Using Linear Programming in Real-Life Problems Name Date A C T I V I T Y 4 Instructions Using Linear Programming in Real-Life Problems Mr. Edwards is going to bake some cookies for his algebra class. He will make two different kinds, oatmeal-raisin

More information

Trigonometric Functions and Triangles

Trigonometric Functions and Triangles Trigonometric Functions and Triangles Dr. Philippe B. Laval Kennesaw STate University August 27, 2010 Abstract This handout defines the trigonometric function of angles and discusses the relationship between

More information

Aptitude Test as a Selective Aid for Technical Training Centers Instructions for Use

Aptitude Test as a Selective Aid for Technical Training Centers Instructions for Use Aptitude Test as a Selective Aid for Technical Training Centers Instructions for Use Table of Contents Aptitude Test as a Selective Aid for Technical Training Centers Instructions for Use...1 Foreword...1

More information

Introduction to Java

Introduction to Java Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high

More information

Prime Factorization 0.1. Overcoming Math Anxiety

Prime Factorization 0.1. Overcoming Math Anxiety 0.1 Prime Factorization 0.1 OBJECTIVES 1. Find the factors of a natural number 2. Determine whether a number is prime, composite, or neither 3. Find the prime factorization for a number 4. Find the GCF

More information

CALCULATIONS & STATISTICS

CALCULATIONS & STATISTICS CALCULATIONS & STATISTICS CALCULATION OF SCORES Conversion of 1-5 scale to 0-100 scores When you look at your report, you will notice that the scores are reported on a 0-100 scale, even though respondents

More information

2.2 Derivative as a Function

2.2 Derivative as a Function 2.2 Derivative as a Function Recall that we defined the derivative as f (a) = lim h 0 f(a + h) f(a) h But since a is really just an arbitrary number that represents an x-value, why don t we just use x

More information