Quiz 1. What is the Output of this code fragment when N = 85 (3 Marks) [5 Minutes] A = N \ 10 B = N Mod 10 C = 0 If (N Mod 2 = 0) Then C = C + 1 Else.

Slides:



Advertisements
Similar presentations
Meaning of Pi 1 The Meaning & Use of Pi by Joseph A. Castellano, Ph.D.
Advertisements

PROGRAMMING IN VISUAL BASIC PART 1
Quiz 2. Quiz 2 What is output (5 Marks) [8 min] X = 987 Y = X Z = 0 Do Do While (Y > 0) Z = Z + Y Mod 10 Y = Y \ 10 Loop Y = Z Z = 0 Loop Until (Y < 10)
Volume of a Cylinder and Cone Today we will answer the very important question …. Which holds more ice cream; a small cup or a cone? Predictions?
10-5 and 10-6 Volumes of Prisms, Cylinders, Pyramids, and Cones
Geometric Solids Use the following key for the formulas in this presentation. b = based = diameter h = heightr = radius l = lengthpi = 3.14 w = width.
Surface Area of a Cylinder By Bill Rawlins Geometry.
12 – 3 Cylinders and Cones.
Volume and Total Surface Area of RIGHT Prisms and CYLINDERS.
 Algebra 1 Remediation September 3 Start on page 208 of practice packet.
Total Surface Area. Rectangular Prism 6 “ 4 “ 5 “ What is the Total Surface Area?
EXAMPLE 4 Solve a multi-step problem
Homework 1-4 Find all the force vectors and then add the vectors to find the total force.
Teacher Version Level Shape Space Measure
What is a cylinder? A cylinder is a three-dimensional shape that has two identical circular bases connected by a curved surface. Radius Circumference.
Quiz-Warm Up! Remember 5 minutes only!
Connecting Geometric and Algebraic Representations Cheryl Olsen Shippensburg University October 11, 2005.
VOLUME = the number of cubic units contained in its interior VOLUME has cubic units Cm 3, ft 3, units 3.
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Perimeter, Area, Surface Area, and Volume Examples
Objective: To be able to use the formula for the Curved Surface Area of a Cone, alongside other mathematical topics.
6cm 1) Find the area of this circle: A)28.3cm² B)113.1cm² C) 37.7cm² D) 18.8 cm² 6cm A)28.3cm² B)113.1cm² C) 37.7cm² D) 18.8 cm².
LATERAL AREA of a CYLINDER GEO182 A cylinder has 3 main pieces: the bases (circles) and the lateral surface (rectangle). TopBottom LS r.
Volume of a Cylinder, Cone, and Sphere
11. 7 Volume of Pyramids and Cones 11
Surface Area of Cylinders Return to table of contents.
SOLIDS PRISMS AND CYLINDERS JIM SMITH JCHS spi3.2.K, 4.3.A.
8-10 Surface Area of Prisms and Cylinders Warm Up Warm Up Lesson Presentation Lesson Presentation Problem of the Day Problem of the Day Lesson Quizzes.
Warm Up Find the volume of each figure to the nearest tenth. Use 3.14 for . 1. rectangular pyramid 7 ft by 8 ft by 10 ft tall ft3 2. cone with radius.
Surface Area of Cylinders Unit 5, Lesson 3. What is a Cylinder? Definition: –A three dimensional figure with 2 circular bases. Formula for Surface Area:
Grade 8 math chart TCU Is Going To The Rose Bowl!!!!!!!!!!!!!!!!!!!!
Perimeter, Area, and Volume Geometry and andMeasurement.
PRE-ALGEBRA. Surface Area: Pyramids, Cones, and Spheres (10-6) How can you find the surface area of a pyramid using a formula? Surface Area (S.A.) of.
Objective: To find the Volume & Surface Area of cones and cylinders.
Circumference Review. Review What is the relationship between a radius and a diameter? What does a circumference measure? What formulas do we use to calculate.
Find the surface area of the prism. COURSE 2 LESSON 8-8 Then find the total area of the five faces. top bottom left side front side back side 10(26) +
V = п r 2 h # 1. The volume of a cylinder is 765 in 3. The formula for volume of a cylinder is V = п r 2 h. Find the radius if the height is 4 inches.
Page 292 HW Answers.
AREA / VOLUME UNIT FORMULAS.
The surface area of a cylinder is the entire area of the outside of the object. To calculate surface area, find the area the curved surface and the two.
THIS IS With Host... Your AreaVolumeRectanglesCirclesPrisms Cylinders.
Surface Areas of Cylinders
Volume of a Cylinder How much will I hold?. A cylinder has two identical flat ends that are circular and one curved side. Volume is the amount of space.
 A cylinder has two identical flat ends that are circular and one curved side.  Volume is the amount of space inside a shape, measured in cubic units.
Quietly get started on the blue worksheet. Try the rectangular prism problems first. Today’s Plan: -Warm-up -Correct Homework -Cylinder Surface Area LT:
Lesson 7 Development of cones with a cut surface.
Topic: U9 Surface Area and Volume EQ: How do we find the surface area and volume of prisms and cylinders?
Lesson #1 Volume of a Cylinder We are learning to…find the volume of a cylinder.
Common Core 7 Unit Reviews Learning Target: Review units for Shapes & Designs & Accentuate the Negative. 1) Pick up a Common Core 7 Units Review packet.
REVIEW FOR TEST LESSON 27.
Surface Area of a Cylinder Geometry. Overview Find the area of a circle Find the circumference of a circle Find the area of rectangle Find the surface.
8 th grade Vocabulary Word, Definition, model Unit 2.
What is surface area of the composite figure? SA: Cylinder =2πrh+πr^2 =2π(5)(6)+π(25) =60π+25π =85π LA: Cone = r= r =  (5)(13) =65  π+65π=150π.
Surface Area and Volume of Cylinders Mr. Bench PVMS.
Surface Area and Volume of Cylinders Geometry Brent Mecham Rebecca Jung Gary Jonas Bryona Golding.
Surface area of a cylinder Imagine a cylinder opened out Rectangle Circle.
Reading the Graduated Cylinder
GEOMETRY REVIEW.
Volume of a Cylinder, Cone, and Sphere
Volume of a Cylinder, Cone, and Sphere
We are learning to…find the volume of a cylinder
Final Exam Review Part 4 - VBA
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Shape & Space Surface Area.
Surface Area of a Cylinder
Volume of a Cylinder, Cone, and Sphere
Volume of a Cylinder, Cone, and Sphere
9.4 – Perimeter, Area, and Circumference
We are learning to…find the volume of a cylinder
The area of a circle with radius r
Presentation transcript:

Quiz 1

What is the Output of this code fragment when N = 85 (3 Marks) [5 Minutes] A = N \ 10 B = N Mod 10 C = 0 If (N Mod 2 = 0) Then C = C + 1 Else C = C + 2 End If If (A > 5) And (B > 5) Then C = C + 3 ElseIf (A > 5) Or (B > 5) Then C = C + 5 Else C = C + 6 End If N = B * C * 10 + A MsgBox ("N = " & N)

Example 1 Cones and Cylinders

Problem 1 Find the surface area of a cylinder with a given radius and height Area of top and bottom is a circle –Area Top = Area Bottom =  r 2 Area of side Circumference * Height –Area Side = 2  rh Total Area –Area = 2  r  rh = 2  r (r + h)

Algorithm Cylinder Name : Cylinder Given : r h Results : A Intermediate : None Definition –A := Cylinder(r, h) Get r Get h A = 2  r(r + h) Give A

Problem 2 Find the surface area of a cone, of given radius and height Area =  r (r + s) –Where s =  (r 2 + h 2 ) This came from an internet research

Cone Algorithm Name : Cone Given : r, h Results : A Intermediate: S Definition –A := Cone (r, h) Get r Get h s = sqrt(r^2 + h^2) A =  r (r + s) Give A

Problem 3 You are in charge of ordering supplies for Fennell Funnel Co. You need to order the plastic pellets for the manufacturing process. Calculate the volume of plastic needed if you know, –the diameter of the top, and bottom –the length of the cone, and the spout –the thickness of the walls You may assume the “extra” is needed in the manufacturing process

Funnel Algorithm Name: Funnel Given: –Dtop, Htop, Dbot, Hbot, t Results : Vol Intermediates: –Acone, Acyl Definition Vol :=Funnel(Dtop, Htop, Dbot, Hbot, t) Get Dtop, Htop Get Dbot, Hbot Get t Acone: = Cone(Dtop/2, Htop) Acyl := Cylinder(Dbot/2, Hbot) Vol = t * (Acone + Acyl) Give Vol

Write these three algorithms using Subroutines

Cylinder Get r (from a SUB) Get h (from a SUB) A = 2  r(r + h) Give A Sub Cylinder (ByVal r as Single, ByVal h as Single

Cylinder Get r (from a SUB) Get h (from a SUB) A = 2  r(r + h) Give A (to a SUB) Sub Cylinder (ByVal r as Single, ByVal h as Single, ByRef A as Single) Const Pi = A = 2*Pi*r * (r + h) End Sub

Cone Get r (from SUB) Get h (from SUB) s = sqrt(r^2 + h^2) A =  r (r + s) Give A SUB Cone (ByVal r as Single, ByVal h as Single,

Cone Get r (from SUB) Get h (from SUB) s = sqrt(r^2 + h^2) A =  r (r + s) Give A (to SUB) Sub Cone (ByVal r as Single, ByVal h as Single, ByRef A as Single) Const Pi = Dim s as Single s = (r^2 + h^2)^(1/2) A = pi * r * (r + s) End Sub

Funnel Get Dtop, Htop Get Dbot, Hbot Get t Acone: = Cone(Dtop/2, Htop) Acyl := Cylinder(Dbot/2, Hbot) Vol = t * (Acone + Acyl) Give Vol Sub Funnel ( ) Dim Dtop as Single Dim Htop as Single Dim Dbot as Single Dim Hbot as Single Dim t as Single Dim Acone as Single Dim Acyl as Single Dim Vol as Single Dtop = InputBox(“Dtop”) Htop = InputBox (“Htop”) Dbot = InputBox(“Dbot”) Htop = InputBox (“Hbot”) t = InputBox(“t”) Call Cone(Dtop/2, Htop, Acone) Call Cylinder(Dbot/2, Hbot, Acyl) Vol = t * (Acone + Acyl) MsgBox (“Vol = “ & Format(Vol,0)) End Sub

Tools Macro Run Funnel View –ToolBars Command Add Button –do a Call Funnel() –Change caption to Run Macro Funnel This is not as direct as Excel