Problem You require an algorithm that will receive the length of the hypotenuse and one of the sides of a right triangle, and calculate the length of the.

Slides:



Advertisements
Similar presentations
Measurement Pythagorean Relationship 3 (Finding the length of an unknown leg)
Advertisements

Pythagorean Relationship 2 (Finding the length of the Hypotenuse)
Trigonometry Ratios.
Exercise 2.
Pythagoras Bingo. Pick 8 from the list C no 16124yes Pythagorean triple Hypotenuse Pythagoras theorem.
The Pythagorean Theorem leg hypotenuse leg Applies to Right Triangles only! The side opposite the right angle The sides creating the right angle are called.
Solving Right Triangles Given certain measures in a right triangle, we often want to find the other angle and side measures. This is called solving the.
Created by G. Antidormi 2003 The Pythagorean Theorem.
EXAMPLE 4 Find the length of a hypotenuse using two methods SOLUTION Find the length of the hypotenuse of the right triangle. Method 1: Use a Pythagorean.
The Pythagorean Theorem. The Right Triangle A right triangle is a triangle that contains one right angle. A right angle is 90 o Right Angle.
Right Triangle Trigonometry
Lesson 56: Special Right Triangles
Lesson 10.1 The Pythagorean Theorem. The side opposite the right angle is called the hypotenuse. The other two sides are called legs. We use ‘a’ and ‘b’
10.5 – The Pythagorean Theorem. leg legleg hypotenuse hypotenuse leg legleg.
8-1 The Pythagorean Theorem and Its Converse. Parts of a Right Triangle In a right triangle, the side opposite the right angle is called the hypotenuse.
Benchmark 40 I can find the missing side of a right triangle using the Pythagorean Theorem.
MA.912.G.5.1 : Apply the Pythagorean Theorem and its Converse. A.5 ft B.10 ft C. 15 ft D. 18 ft What is the value of x? x 25 ft 20 ft.
Pythagorean Theorem Use the Pythagorean Theorem to find the missing length of the right triangle. 1.
Pythagorean Theorem And Its Converse
Right Triangles And the Pythagorean Theorem. Legs of a Right Triangle Leg -the two sides of a right triangle that form the right angle Leg.
Holt Course 2 NY-10 Using the Pythagorean Theorem NY-10 Using the Pythagorean Theorem Holt Course 2 Lesson Presentation Lesson Presentation.
Section 3-5 p. 137 Goal – to solve problems using the Pythagorean Theorem.
The Pythagorean Theorem. The Parts of a right triangle a b c l egs hypotenuse a² + b² = c².
7.1 – Apply the Pythagorean Theorem. Pythagorean Theorem: leg hypotenuse a b c c 2 = a 2 + b 2 (hypotenuse) 2 = (leg) 2 + (leg) 2 If a triangle is a right.
Right Triangles and Trigonometry Chapter 8. Pythagorean Theorem a 2 + b 2 = c 2 right triangle a 2 + b 2 < c 2 obtuse triangle a 2 + b 2 > c 2 acute triangle.
Pg. 324 Homework Memorize familiar radian measure angles Pg. 323#2 – 52 even Pg. 361#1 – 13 all.
Objective The student will be able to:
Section 8.4 Special Right Triangles VERY VERY VERY VERY IMPORTANT SAT SECTION.
Pg. 324 Homework Memorize familiar radian measure angles Pg. 361#1 – 13 all #1QIII#3QII#5QI #7408° #9345° #11415°, 775°, -305°, -665° #1350°, 770°, -510°,
Pythagorean Theorem Unit 7 Part 1. The Pythagorean Theorem The sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse.
Chapter 1: Square Roots and the Pythagorean Theorem Unit Review.
The Pythagorean Theorem
Section Take a note: Up until now, our work with triangles has involved right triangles, And for that we use the Pythagorean Theorem. But there.
Pythagorean Theorem What is it and how does it work? a 2 + b 2 = c 2.
11.4 Pythagorean Theorem Definitions Pythagorean Theorem
4.4 Pythagorean Theorem and the Distance Formula Textbook pg 192.
A c b Created by ﺠﻴﻄ for mathlabsky.wordpress.com.
Converse of Pythagorean Theorem
The Pythagorean Theorem Use the Pythagorean Theorem to find the missing measure in a right triangle including those from contextual situations.
The Pythagorean Theorem a2 + b2 = c2
Section 8-3 The Converse of the Pythagorean Theorem.
Pythagorean Theorem and Special Right Triangles. Anatomy of a Right Triangle Why is a right triangle called a right triangle? Because it is a triangle.
Pythagorean Theorem & its Converse 8 th Grade Math Standards M.8.G.6- Explain a proof of the Pythagorean Theorem and its converse. M.8.G.7 - Apply the.
Pythagorean Theorem & Distance Formula Anatomy of a right triangle The hypotenuse of a right triangle is the longest side. It is opposite the right angle.
10-1 The Pythagorean Theorem. LEGS Hypotenuse Problem 1: Finding the Length of a Hypotenuse The tiles shown below are squares with 6-in. sides. What.
Midpoint And Distance in the Coordinate Plane
A triangle in which one angle is a right angle is called a right triangle. The side opposite the right angle is called the hypotenuse, and the remaining.
Midpoint And Distance in the Coordinate Plane
Pythagoras’ Theorem – Outcomes
12-2 The Pythagorean Theorem
4.5 The Converse of the Pythagorean Theorem
Using the Pythagoras Theorem.
Hyp Opp Adj c a b c 2 = a 2 + b 2 b 2 = c 2 - a 2 a 2 = c 2 - b 2 xo
7.7 Solve Right Triangles Obj: Students will be able to use trig ratios and their inverses to solve right triangles.
Notes Over Pythagorean Theorem
11.4 Pythagorean Theorem.
6-3 The Pythagorean Theorem Pythagorean Theorem.
8-2 The Pythagorean Theorem and Its Converse
5-7 The Pythagorean Theorem
5.7: THE PYTHAGOREAN THEOREM (REVIEW) AND DISTANCE FORMULA
The Pythagorean Theorem
Pythagorean Theorem a²+ b²=c².
6.5 Pythagorean Theorem.
Similar Triangles Review
Pythagoras’ Theorem.
The Pythagorean Theorem
10-1 The Pythagorean Theorem
Converse to the Pythagorean Theorem
7-3 Special Right Triangles
The Pythagorean Theorem a2 + b2 = c2
Presentation transcript:

Problem You require an algorithm that will receive the length of the hypotenuse and one of the sides of a right triangle, and calculate the length of the remaining side and the two acute angles in the triangle. You require an algorithm that will receive the length of the hypotenuse and one of the sides of a right triangle, and calculate the length of the remaining side and the two acute angles in the triangle.

Problem

Problem side1 side2 hyp angle1 angle2

Defining Diagram InputsProcessingOutput hypside1 Prompt for and get hyp and side1 Calculate side2 (Pythagorean theorem) Calculate angle1 and angle2 Display results side2angle1angle2

Calculate_Side_and_Angles Prompt user for hyp and side1 Get hyp and side1 side2 = hyp*hyp – side1*side1 side2 = SQRT(side2) angle1 = ARCSIN (side2/hyp) angle2 = 90 – angle1 Display side2, angle1 and angle2 END

Basic Elements of C++ Basic Elements of C++

# include # include using namespace std; int main() { cout<<“Hello world!”; cout<<“Hello world!”; return 0; return 0;} Preprocessor directive Function main Semicolons Curly braces

# include # include using namespace std; int main() { cout<<“Hello world!”; cout<<“Hello world!”; return 0; return 0;}

# include # include using namespace std; void main() { cout<<“Hello world!”; cout<<“Hello world!”; return; return;}

# include # include using namespace std; int main() { cout<<“Hello world!”; cout<<“Hello world!”; return 0; return 0;} /* This is our first C++ program Oh, how exciting!!!!! Oh, how exciting!!!!!*/ //this is our first function //this is preprocessor directive

Variables Identifiers can consist of Identifiers can consist of Letters Letters Digits (but cannot start with digits) Digits (but cannot start with digits) Underscore character Underscore character Identifiers are case sensitive. Identifiers should be self-explanatory.

price+tax price+tax My Number My Number costofthepurchase costofthepurchase _total_sum _total_sum one*two one*two pay$ pay$ xcsrtysb xcsrtysb Average_Age Average_Age 3rd_side 3rd_side Valid Identifiers?

C++ Data Types Simple Simple Structured Structured Pointers Pointers

Basic Data Types Integer - int Integer - int Floating point value – float, double Floating point value – float, double Character - char Character - char - bool Boolean - bool

‘d’ 7. ‘Bob’ ‘ ’

Variable Declaration data-type variable-name, var-name… int num; float price1, price2; double average; char letter_grade; optional

Variable Initialization int a=3; //initialization int a=3; //initialization int a; int a; a=3; //assignment a=3; //assignment int a; int a; cin>>a; //input data cin>>a; //input data

# include # include using namespace std; int main() { int age; int age; cout<<“Enter your age”; cout<<“Enter your age”; cin >>age; cin >>age; cout<<endl<<“You are ”<<age; cout<<endl<<“You are ”<<age; return 0; return 0;}

Calculate_Midpoint Prompt user for x1, y1, x2, y2 Get x1, y1, x2, y2 xm=(x1+x2)/2ym=(y1+y2)/2 Display xm and ym END

# include # include using namespace std; int main() { int x1, y1, x2, y2, xm, ym; cout<<endl<<“Enter the coordinates of the 1st point”; cin >>x1 >>y1; cout<<endl<<“Enter the coordinates of the 2nd point”; cin>>x2 >>y2; xm=(x1+x2)/2;ym=(y1+y2)/2; cout<<endl<<“The midpoint is ”<<xm<<“,”<<ym; return 0; }

Review Declare an integer variable and initialize it to 8 Declare an integer variable and initialize it to 8 Give an example of preprocessor directive Give an example of preprocessor directive What is the name of the function that every C++ program must have? What is the name of the function that every C++ program must have? If A is initialized to 5 and B is initialized to 7 what are the values of A and B after the following assignment operation: If A is initialized to 5 and B is initialized to 7 what are the values of A and B after the following assignment operation: B=A; B=A; A = ________, B = _____________.

Review - identify the operation int num; int num; num = 5; num = 5; int num=5; int num=5; declaration assignment during declaration  initialization assignment

The grade distribution in a certain class is as follows: The grade distribution in a certain class is as follows: HW – 30% points max HW – 30% points max Tests – 45% points max Tests – 45% points max Labs - 25% points max Labs - 25% points max Write an algorithm that will receive the scores in each category of one student and display his final grade (out of 100%). Write an algorithm that will receive the scores in each category of one student and display his final grade (out of 100%).