Lecture 2 Examples Pseudo code and flowcharts. Problem 1 Read a number as input and then print if it is even or odd.

Slides:



Advertisements
Similar presentations
Triangles TOPIC 9 LESSON 9-5.
Advertisements

Exercise (1).
TRIANGLES AND TYPES OF TRIANGLES
Bell Work Name the Angle in four different ways
SPI Identify, describe and/or apply the relationships and theorems involving different types of triangles, quadrilaterals and other polygons.
HOW MANY SIDES ARE THERE, AND WHAT IS THEIR ANGLE?
Warm-Up Given: AB has endpoints A (3, -4) and B (-1, -6) Find: Midpoint M and Distance.
10.1 Triangles. Acute Triangle Not Acute Triangles.
Classifying Triangles Students will classify triangles using the lengths of the sides and the angles. S. Calahan October 2010.
Classify Triangles Standard 4C.
We can work this out without a calculator.
By Jan, Marcia, Carole, and Donna Adapted By Suzanne & Stephanie
The World Of Triangles. Triangles A triangle is a 3- sided polygon. Every triangle has three sides and three angles. When added together, the three angles.
Classifying Triangles Add the following to your math notes.
EQUILATERAL & ISOSCELES Quiz tomorrow. CLASSIFY the triangle by ANGLES and SIDES Angles: acute, obtuse, right Sides:equilateral, isosceles, scalene 91.
A chord of a circle is subtended by an angle of x degrees. The radius of the circle is 6 √ 2. What is the length of the minor arc subtended by the chord?
Jeopardy VocabularyAnglesFind XCircleTTriangle Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy.
Angles and Triangles Equilateral and Isosceles and Scalene and Acute and Right and Obtuse and so on and so on! Fact: A triangle has three sides and three.
Let’s revise some angles Angles What names of angles do you know? ACUTE RIGHT ANGLE OBTUSEREFLEX Less than 90 o Exactly 90 o Between 90 o and 180 o Between.
Terra Nova Practice Review of Lessons Problem 1 If you plot the following points on the grid below and connect them, what figure do you get?
 Triangle Song - YouTube Triangle Song - YouTube.
Triangle A polygon with three sides and three angles. A triangle can be names by its’ side lengths and angles. – Side lengths: isosceles, equilateral,
Triangle Classification. Objectives Classify triangles by their angle and side measures Find the sum of the measure of the interior and exterior angles.
TRIANGLES AND TYPES OF TRIANGLES. A triangle has three sides.
Types of Triangles. Equilateral Triangle All sides are the same length and all the angles are the same length.
Triangles 1st year P26 Chapter 4.
Types of Triangles. Angles The angles in a triangle add up to o + 60 o + 60 o =
HONORS GEOMETRY 4.1. Classifying Triangles. Do Now: No need to write things- just discuss with someone near you. What is a triangle? How many sides does.
Geometry Review Lines, Angles, Polygons. What am I?
Exploring Angles in a Triangles Chapter 8 Lesson 4 Image Taken from:
Triangles Shapes with 3 sides! Equilateral Triangle All 3 Sides are equal in Length All 3 interior angles are the same.
Equilateral, Isosceles, Scalene, Right, Acute, Obtuse Types of Triangles.
Time for Triangles. What is a triangle? A triangle is a polygon. It has 3 sides and 3 angles. It can also be called a trigon.
Classifying Triangles Lesson Classifying by Angle Acute triangles have three acute angles. Obtuse triangles have one obtuse angle. Right triangles.
By: Joanne Hodgson and Jennifer Campbell Today we will be learning how to classify triangles according to length of sides and measurement of the angles.
Classifying Triangles. Two Ways to Classify Triangles  By Their Sides  By Their Angles.
Scalene triangle: A scalene triangle is a triangle that has no equal sides. The following is a scalene triangle.
Lesson 8.3 Concept: How to classify triangles by their sides and angles. An equilateral triangle has three sides of the same length. An isosceles triangle.
Geometry Triangles What is a Triangle? A three sided convex polygon. A three sided convex polygon. Its three segments are called sides. Its three segments.
Learning Objective Identify triangles using their sides.
2D Computer Project By: Alexander and Alby. obtuse angle right angle 3 types of angles an angle that measure exactly 90 degrees. an angle that measure.
The World Of Triangles Free powerpoints at
Angles In Triangles Types of Triangles Isosceles triangle
Triangles.
Standard:9 geometry triangles
Triangles.
Imagine a triangle made by connecting the dots on the circumference or in the centre of the circle. Without pointing, how can you describe your triangle?
MCC.4.G.1-2 All About Triangles.
TRI NGLES 2 ways to classify: By Sides By Angles 60 4” 4” 4” 60 60
The World Of Triangles Free powerpoints at
Angles In Triangles Types of Triangles Isosceles triangle
** For questions #1-13 (ODD):
Angles In Triangles Types of Triangles Isosceles triangle
Geometry.
Lesson 9 Lines & Angles Special Triangles.
Classifying Triangles
Objective - To classify triangles.
Identify type of triangle
Drill 1) x = 180, solve for x 2) How many degrees do the interior angles of a triangle add up to. 3) What type of triangle has an angle that.
Types of Triangles Thursday, 11 April 2019.
Types of Triangles Thursday, 11 April 2019.
Bell Ringer
Front of Flipbook Right Triangles Acute Triangles Obtuse Triangles
Intro to Triangles.
Classifying Triangles
Equilateral – equal All sides are equal length.
Area and Perimeter Triangles.
Presentation transcript:

Lecture 2 Examples Pseudo code and flowcharts

Problem 1 Read a number as input and then print if it is even or odd

Problem 1 : Flowchart and pseudo code Pseudo code: read number get the remainder when the number is divided by 2 if remainder is 0 print “number is even” else print “number is odd”

Problem 2 Read the radius of circle and print the area and circumference only if the value of the radius is more than zero.

Problem 2 Pseudo code: read radius if radius <= 0 print “Radius cannot be negative or zero” exit if radius > 0 calculate area calculate circumference print area print circumference

Problem 3 Take two numbers as input and print the greater of the two. If numbers are equal print “numbers are equal”.

Problem 3 Pseudo code: read n1, n2 if n1 equals n2 print “numbers are equal” exit if n1 > n2 print “n1 is greater” else print “n2 is greater”

Problem 4 Read the length of the three sides of a triangle and print if it the triangle is an equilateral or isosceles or scalene triangle. equilateral – all sides are equal isosceles – any two sides are equal scalene – all sides have different length Try this problem as an exercise and show it to me in the labs

Quiz 1 Next week at this lecture time 45 mins, 5% of the course Lecture 1 + Lecture 2 part (what we did today) MCQs, short answer, flowcharts, pseudo code and c++ programs

Lab talk DevC++ is already setup for most of you Always come to lab with the lecture printout or PPT Lab exercises are related directly to lecture and are the practical part of the lecture YOU MUST TRY TO SOLVE THE LAB EXERCISES BEFORE YOU COME TO LAB – TRY! Save and organize your C++ programs into folders like lab 1, lab 2 – you will need them later…. There are lab exams also.. later Lab exercises always available on the website a couple of days before the lab