FIND THE VOLUME: 5 in 8 in 4 in.

Slides:



Advertisements
Similar presentations
ECS 15 if and random. Topic  Testing user input using if statements  Truth and falsehood in Python  Getting random numbers.
Advertisements

Formulas LinesApplicationPrismsMixed Bag Team 1Team.
Python November 14, Unit 7. Python Hello world, in class.
Bellwork Find the area of the shapes described: Find the area of the shapes described: 1.Rectangle with sides 4 inches by 7 inches. 2.Square with side.
Lesson 6.3 – Finding Perimeter and Area in the Coordinate Plane Concept: Distance in the Coordinate Plane EQ: how do we find area & perimeter in the.
1 Lesson 1-9 Powers and Laws of Exponents. Location of Exponent An exponent is a little number high and to the right of a regular or base number. An exponent.
11.3 Perimeter and Area of Similar Figures. Two rectangles are similar. One has width 4 in. and length 6 in. The other has width of 6 in. and length of.
Simplifying Rational Expressions – Part I
Today we will derive and use the formula for the area of a parallelogram by comparing it with the formula for the area of a rectangle. derive = obtain.
Do Now Solve and graph the following inequalities: 1). 4R ≥ 39 2). 3(X + 3) + 5 ≤ 32 3). -18 > 2(X – 2) + 5X COMPLETE THE DO NOW SILENTLY, INDEPENDENTLY,
th grade math Volume of Rectangular Prisms.
Do Now C = π x D; D = 2R; R = ½ D. Find the 1). Radius if the Diameter is 8 miles 2). Diameter if the Radius is 12 inches 3). The circumference if the.
Volume word problems Part 2.
A First Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington Credits: a significant part of.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #002 (January 17, 2015)
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
Chapter 10 Test Formula Review.  Find the circumference of a circle with a diameter of 10. Identify the formula needed for the following questions.
th grade math Area of Triangles. Objective To find the area of triangles Why? To know how to use formulas and evaluate variable expressions using.
Solving systems of equations with 2 variables
Please log on The. AN INTRODUCTION TO ‘Python is a high-level, general purpose programming language’ Python is one of the many programming languages.
Area of Quadrilateral.
Programming for GCSE 1.0 Beginning with Python T eaching L ondon C omputing Margaret Derrington KCL Easter 2014.
12/12/ : Using Formulas Expectation: You will be able to use the formulas for area and perimeter of a rectangle to calculate (with correct units)
EXAMPLE 3 Standardized Test Practice A = lw 63 = 9w 63 = = w Write area formula. Substitute values. Divide each side by 9. Simplify. ANSWERThe.
Lesson 1.7 Find Perimeter, Circumference, and Area.
1 Printing in Python Every program needs to do some output This is usually to the screen (shell window) Later we’ll see graphics windows and external files.
More on Functions Intro to Computer Science CS1510 Dr. Sarah Diesburg.
Class Notes Geometry Sec 2.7 Objective: Apply concepts of perimeter, area, and volume 1.Review: Find the perimeter of each figure below a. 4x -
Geometry 1.6 Perimeter and Area. Perimeter Is the distance around a figure It is the sum of the lengths of the sides of the figure =side 1 +side 2 +side.
Location of Exponent An An exponent is the small number high and to the right of a regular or base number. 3 4 Base Exponent.
5 ft 3ft 5ft 3ft Always write your answer with the unit of measurement.
Location of Exponent An exponent is the small number high and to the right of a regular or base number. 3 4 Base Exponent.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #003 (February 14, 2015)
More on Functions Intro to Computer Science CS1510 Dr. Sarah Diesburg.
What are we going to learn? CFU Students, you already know how to write numerical expressions. Now, we will write numerical expressions using exponential.
G-06 Perimeter and Area I can find the perimeter and area of plane and coordinate quadrilaterals.
Module 3 Lesson 3 Demonstrate understanding of area and perimeter formulas by solving multi-step real-world problems.
Reviewing 2D, introducing 3D
Development Environment
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
Volumes of Pyramids and Cones
A Playful Introduction to Programming by Jason R. Briggs
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
A Unit about Change in Geometric Figures and Solids
Introduction to Python
simplify radical expressions involving addition and subtraction.
Splash Screen.
Review 1.1 Evaluate when x = 8, y = 2, and z = 6 Find the product
EXAMPLE 1 Finding Area and Perimeter of a Triangle
IF statements.
Thinking about programming
Quadrilaterals II by Monica Yuskaitis.
Conditions and Ifs BIS1523 – Lecture 8.
Quadrilaterals II Geometry – Unit 6.
Volume of a Rectangular Prism
Areas of Trapezoids, Rhombi, and Kites
Perimeter, Circumference, and Area
GEOMETRY UNIT.
Chapter 1: Linear Functions, Equations, and Inequalities
Inputs and Variables Programming Guides.
Area, Surface Area, Perimeter, Volume
Volumes of Pyramids and Cones
Introduction In today’s lesson we will look at: why Python?
What is the number whose area is 16 unit square?
Introduction to Python
Basic Mr. Husch.
11.1 Even Answers.
COMPLETE THE DO NOW SILENTLY, INDEPENDENTLY, & IMMEDIATELY
Objective Apply formulas for perimeter, area, and circumference to composite figures.
Area and Volume How to … Calculate the area of a square or rectangle
Presentation transcript:

FIND THE VOLUME: 5 in 8 in 4 in

FIND THE VOLUME: 2 ft 6 in 3 ½ in

FIND THE VOLUME: ¼ m ½ m ¾ m

FIND THE VOLUME: 4.1 yd 8.6 yd 12.5 yd

Intro to Programming in Python Using computer programming to simplify and demonstrate understanding of geometry concepts

What is Python? Interpreted programming language Powerful for working with data Easy-to-learn syntax

Sample: Programming and Area length = 5 width = 6 units = “inches” area = length * width print “The area of this parallelogram is” , area, units, “squared” Output:

What’s going on here? This is all generic information about Python. It’s basically like starting an app – it tells you the version number and lets you know some commands These lines create variables length and width and give them numeric values This creates a variable with a STRING value This creates a variable whose value is the result of an expression – the earlier length times width Here I give the computer a command, to PRINT on the screen everything that follows (anything in quotes is printed exactly as written; anything outside of quotes, the computer thinks is a variable, so it prints its value instead Here is the computer’s response to my command!

That’s not very cool… How does the user know what the dimensions of the parallelogram are? What about other parallelograms?! This program only figures out the area of one specific parallelogram! How can someone else put in their own dimensions and units? I still have to show my work, and this only shows me the answer…

Let’s make our program better!

Area REVISED length = int(raw_input(“What is the length of the parallelogram?”)) width = int(raw_input(“What is the width of the parallelogram?”)) units = raw_input(“What are the units of the dimensions?”) area = length * width print “The area of this parallelogram is” , area, units, “squared” Output:

That’s not very cool… How does the user know what the dimensions of the parallelogram are? What about other parallelograms?! This program only figures out the area of one specific parallelogram! How can someone else put in their own dimensions and units? I still have to show my work, and this only shows me the answer…

Area REVISED AGAIN length = int(raw_input(“What is the length of the parallelogram?”)) width = int(raw_input(“What is the width of the parallelogram?”)) units = raw_input(“What are the units of the dimensions?”) area = length * width print “A = l * w” print “A = “ , length, units, “*” , width, units print “A = “ , area, units, “ squared” print “The area of this parallelogram is” , area, units, “squared”

How Could We Make This Even Better? Support someone entering mixed units (3 feet by 30 inches) Ask what kind of figure the user wants to find the area of, and compute appropriately Check to make sure the user doesn’t enter gibberish or stuff that doesn’t fit Figure out the perimeter too!