ARC, BAR AND CIRCLE FUNCTIONS IN C++ The presentation defines the usage of the functions shown above OBJECT ORIENTED PROGRAMMING IN C++ BY: MUHAMMAD DANIYAL.

Slides:



Advertisements
Similar presentations
Chessboard problems You don’t have to know chess to solve them.
Advertisements

Radius- Is the edge to the middle of the circle. Diameter- It goes throw the whole center of the circle.
Aim: To understand and know the vocabulary for parts of a circle
Polygon from a known side
THE ELLIPSE. The Ellipse Figure 1 is ellipse. Distance AB and CD are major and minor axes respectively. Half of the major axis struck as a radius from.
OBJECTIVES: STUDENTS WILL BE ABLE TO… USE THE RELATIONSHIP BETWEEN A RADIUS AND A TANGENT USE THE RELATIONSHIP BETWEEN 2 TANGENTS FROM ONE POINT FIND THE.
ENS 207 engineering graphics
EXAMPLE 5 Find arc lengths to find distance TRACK The curves at the ends of the track shown are 180° arcs of circles. The radius of the arc for a runner.
Name ______ Gr.__ Lesson 4.1 – Circles Jan.__ Objective: to measure radius and diameter and discover their relationship.
Modeling and Optimization
AREA AND CIRCUMFERENCE OF A CIRCLE. diameter radius circumference The perimeter of a circle is called the circumference (C). The diameter (d) of a circle.
Unit 30 SPHERES AND COMPOSITE FIGURES: VOLUMES, SURFACE AREAS, AND WEIGHTS.
Composite Shapes Circular Parts
Properties of Circles Perimeter and Area A circle is defined as a plane curve formed by the set of all points which are a given fixed distance from a.
Perimeter Rectangles, Squares, and Triangles Perimeter Measures the distance around the edge of any flat object. To find the perimeter of any figure,
The outside of the circle is called circumference The circumference is the distance around the circle.
How to Sketch a Horizontal Line
Area & Perimeter.
10.7 Areas of Circles and Sectors
1 MEL 110 Development of surfaces. 2 Prism – Made up of same number of rectangles as sides of the base One side: Height of the prism Other side: Side.
#30-1 March 28, 2011 Solve the equation 1) 4m = 6 2) 3) Find the area of the rectangle for each of the possible values of x.
Circumference and Area: Circles
Circle. A Circle features……. … the distance around the Circle… … its PERIMETER Diameter … the distance across the circle, passing through the centre of.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman CP 202 Chapter 3 Slides By Dr. Daniyal Alghazzawi.
CIRCUMFERENCE: or If you unwrap a circle, how long will the line be?
A circle is a closed curve in a plane. All of its points are an equal distance from its center.
Areas of Circles and Sectors 11.5 California State Standards 8: Solve problems involving perimeter and area. 19: Use trigonometric functions 21: Prove.
Circumference & Area of a Circle
Circles. Circumferences of Circles diameter (d) O circumference (C) The circumference (C) and the diameter (d) of a circle are related by radius (r) Since.
Note 2: Perimeter The perimeter is the distance around the outside of a shape. Start at one corner and work around the shape calculating any missing sides.
MEASUREMENT Perimeter.
Starter The perimeter of this sector is (2r + 12∏) m. Find the radius r m, of the sector. r m.
Warm-Up Find the area: Circumference and Area Circles.
Chapter 11.5 Notes: Areas of Circles and Sectors Goal: You will find the areas of circles and sectors.
Projection of Planes Plane figures or surfaces have only two dimensions, viz. length & breadth. They do not have thickness. A plane figure, extended if.
Section 4-2 Area and Integration. Basic Geometric Figures rectangle triangle parallelogram.
Radians, Arc Length and Sector Area. Radians Radians are units for measuring angles. They can be used instead of degrees. r O 1 radian is the size of.
RADIANS Radians, like degrees, are a way of measuring angles.
Definition: Rectangle A rectangle is a quadrilateral with four right angles.
Geometry Warm Up CIRCLES AND ARCS Objective: To find the circumference and arc length.
Circle Properties. Draw a Circle Draw a Chord Draw radii from ends of chord Draw lines from each end of line to meet on circumference a b Measure angles.
6-1 Angle Measures The Beginning of Trigonometry.
Angular measurement Objectives Be able to define the radian. Be able to convert angles from degrees into radians and vice versa.
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.
5.1 Estimating with Finite Sums Greg Kelly, Hanford High School, Richland, WashingtonPhoto by Vickie Kelly, 2002 Greenfield Village, Michigan.
Hosted by Mr. Bagunolo Function Area Formula Circle, Rectangle, Square What if?
Perimeter, Circumference, and Area
11.5 Sectors and Arc Lengths
Geometry Honors Section 5.3 Circumference and Area of Circles.
Finding Perimeter and Area Review. Perimeter The distance around the outside of an object. 10 feet 8 feet 10 feet Perimeter = = 36 feet.
A locus is a set of points that satisfy a rule. It can be a line, a curve or a region. A locus is a set of points that satisfy a rule. It can be a line,
Chapter 25 Circle Properties. Circles Circumference = Distance whole way round Arc = Distance round part of circle Radius = Line from centre to edge Diameter.
S2B Chapter 10 Areas and Volumes Chung Tai Educational Press. All rights reserved. © Formulae of Areas of Plane Figures Area of square Area of rectangle.
Circles: Arcs, Angles, and Chords. Define the following terms Chord Circle Circumference Circumference Formula Central Angle Diameter Inscribed Angle.
Perimeter, Circumference and Area. Perimeter and Circumference Perimeter : The distance around a geometric figure. Circumference: The distance around.
- draw a diameter - make a radius - join diameter and radius -join other end of diameter and radius - put in any angle for one of the angles formed - fill.
The midpoint of a circle is centre The line drawn from the centre to the circumference is … radius.
Lesson 2 J.Byrne Circles in Contact Externally When circles are touching at one point on their circumference they are said to be in contact tangentially.
Objectives: 1. Look for a pattern 2. Write an equation given a solution 4-8 Writing Equations from Patterns.
Circles and terms related to them
Circle Theorems Angles subtended from the same arc.
11.3 Areas of Circles and Sectors
Engineering Graphics - Lect 6
Point-a location on a plane.
Arc Length and Sector Area
All About Shapes! Let’s Go!.
Central Angles and Arc Length
SHAPES By: Ms. Conquest.
Lesson 8-2 Formulas Circumference Arc Length Area Sector.
Everybody knows these are NOT circles. But why?
Presentation transcript:

ARC, BAR AND CIRCLE FUNCTIONS IN C++ The presentation defines the usage of the functions shown above OBJECT ORIENTED PROGRAMMING IN C++ BY: MUHAMMAD DANIYAL QURESHI BS(CS)-1 ROLL NO. 32 SHAH ABDUL LATIF UNIVERSITY, KHAIRPUR MIRS

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message What is ? ■ is header file in which many graphical functions are included ■Therefore, is prototype of all of those functions. ■We can create a diagram or any figure if we include this header file in our program. ■Three of those functions are “ arc() ”. “ Bar() “ and “ circle() “. That are defined ahead.

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message What is arc()? ■Arc basically means a part of circumference of a circle or a curve. ■arc() function is used to create a curve. ■We can also create a circle through arc() on some extent. ■Syntax: arc(x,y,stangle,endangle,radius) ■In the given syntax, x and y are set to be the centre of the arc. Stangle is angle you want the arc to start from endangle is angle you want the arc to end at. & radius is distance of from the centre.

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message What is bar()? ■Basically, a piece of any material like wood or chocolate having 4 corners is called bar. ■In this manner, bar() function is used to draw a bar. Or figure like square or rectangle. ■Syntax: bar( a, b, c, d) ■a, b, c and d are used to set the corners of the bar. ■(a, b) is upper left corner of the bar and (c, d) is lower right corner of the bar.

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message What is circle()? ■Circle is basically a figure bounded by one line, it's a figure, every point of which is equal to the distance from the centre. ■So, circle() is a function used to draw a circle. ■Syntax: circle(x, y, radius) ■x and y are set to be the centre of the circle and radius is distance of the circumference of the circle from the centre of the circle.

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message Program Example: #include void main(void) { int gdriver = DETECT,gmode; initgraph(&gdriver,&gmod e,"C:\\Turboc3\\BGI"); arc(0,0,270,360,100); bar(150,150,200,200); circle(300,300,50); getch(); }

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message Output of the given Program:

Graphics.h What is arc()? What is bar()? What is circle()? Programming Output Message THANKS TO ALL OF YOU I hope I have been able to explain all aspects of the given presentation. If there are any questions left regarding this presentation, I’m very willing to answer them.