Exercise Variation of the Weinberg-Myers Triangle Problem

Slides:



Advertisements
Similar presentations
Triangles. Equilateral triangle: A triangle with all three sides equal in measure. The slash marks indicate equal measure. Isosceles triangle: A triangle.
Advertisements

TRIANGLES AND TYPES OF TRIANGLES
Math Jeopardy! Geometry: Shapes, Lines, & Angles (To play, you must start at the game board. Then you can select a category and dollar amount, and click.
By Trissy Brandvold. What type of triangle is this? equilateral triangle right triangle isosceles triangle.
Software Testing Levels Philippe CHARMAN Last update:
2 dimensional shapes and other geometry terms
Classifying Triangles Students will classify triangles using the lengths of the sides and the angles. S. Calahan October 2010.
Exercise Computing the cyclomatic complexity Philippe CHARMAN Last update:
Classify Triangles Standard 4C.
Geometry Quadrilaterals. Geometry: Plane Shapes quadrilateral: any closed, four-sided shape.
Geometry The shape of things to come….
4.7 – Use Isosceles and Equilateral Triangles You know that a triangle is isosceles if it has at least two congruent sides. When an isosceles triangle.
1 4-5 Isosceles and Equilateral Triangles State and apply the Isosceles Triangle Theorem and its converse State and apply the corollaries for equilateral.
1 Isosceles and Equilateral Triangles. 2 Parts of an Isosceles Triangle An isosceles triangle is a triangle with two congruent sides. The congruent sides.
5-1 Classifying Triangles
Types of 2 D Shapes and There Properties 1)A shape with 3 sides is called a triangle 2)A shape with 4 sides is called a quadrilateral 3)The general term.
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?
Triangles; Objective: To find the perimeter and area of a triangle.
Triangle A polygon with three sides and three angles. A triangle can be names by its’ side lengths and angles. – Side lengths: isosceles, equilateral,
4-1 Classifying Triangles
Triangles and Lines – Introduction to Triangles
GEOMETRY 4-1 Classifying Triangles. Acute Triangle Three acute angles Triangle Classification By Angle Measures.
Triangles A Guided PowerPoint Presentation. 15cm 5cm 10cm 94º 1.
Basic Geometry Review-Shapes and Angles. Review Topics Squares Triangles Rectangles Polygons Obtuse Angle Acute Angle Right Angle Finished?
Types of Triangles and Quadrilaterals “I can draw and label 2-D figures.”
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 =
Geometry. Line segment ray line Right angle Acute angle.
Classifying Triangles Math 7 Ms. Conway Math 7 Ms. Conway.
D B A C 3.2—Isosceles and Equilateral Triangles. Objective: Use properties of _______________, and ________________triangles. equilateral Vocabulary:
Warm Up # 4 Classify and name each angle. 1 ab c d.
Isosceles Triangles Theorems Theorem 8.12 – If two sides of a triangle are equal in measure, then the angles opposite those sides are equal in measure.
Classifying Triangles. Two Ways to Classify Triangles  By Their Sides  By Their Angles.
SATMathVideos.Net A) only I B) only II C) II and III D) I, II and III If two sides of a triangle have sides of lengths 4 and 7, the third leg of the 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.
Learning Objective Identify triangles using their sides.
Notes Over 10.1 Finding the Distance Between Two Points Find the distance between the two points.
Geometry/Trig 2 Name __________________________
Triangles.
Use isosceles and equilateral triangles
4.7 – Use Isosceles and Equilateral Triangles
MCC.4.G.1-2 All About Triangles.
TRI NGLES 2 ways to classify: By Sides By Angles 60 4” 4” 4” 60 60
TRIANGLES AND TYPES OF TRIANGLES
Lesson 8.2 – 8.3 Angles, Triangles and Quadrilaterals
Geometry.
Quadrilaterals TeacherTwins©2014.
Exploring Polygons.
Rectangle Rest Find angle
Mr Barton’s Maths Notes
Classifying Triangles
Geometry/Trig Name: __________________________________
Objective - To classify triangles.
7.2 Isosceles and Equilateral Triangles
Similar Figures.
Add up all the sides Perimeter of Area of a Rectangle: ANY polygon:
Area Formula of a Square?
Types of Triangles Thursday, 11 April 2019.
Types of Triangles Thursday, 11 April 2019.
Isosceles and Equilateral Triangles
Triangles.
Classifying Triangles
Isosceles and Equilateral Triangles
Classifying Triangles
Made by Ms. Shobhana Sharma By KV INS HAMLA
Area and Perimeter Triangles.
Presentation transcript:

Exercise Variation of the Weinberg-Myers Triangle Problem Durée 1 heure A faire: introduire jeu de rôle avec client (mez), dev et tester Comm par mail 1’ temps: Dev: ecrit la spec ie definit l’interface et la passe au tester puis implemente la fonction Tester: ecrit la suite des tests 2’ temps: Implémentation et suite de tests finie Execution des tests Conclusion ? Au programme de ce TD Pair Programming: travail en binome Le fait d’avoir une personne à coté a 2 effets: La personne qui regarde peut réagir de suite pour corriger du code, poser des questions, verifier que tout va bien La personne qui écrit a un regard sur elle et un comportement Bug dans une fonction et on seche completement Pourtant c’est le type de bug trivial, evident mais on a les yeux usés et on voit plus ce On demande à quelqu’un de nous aider et on lui explique ce qu’on a ecrit Rien qu’en expliquant on trouve le bug de suite Test Driven Development: les tests avant le code Couverture de test Metriques avec outil Understand R`wgles de codage Philippe CHARMAN charman@fr.ibm.com http://users.polytech.unice.fr/~charman/ Last update: 04-16-2013

Different types of triangles invalid doesn’t exist point reduced to a point segment reduced to a line segment equilateral all sides have the same length isosceles 2 sides have the same length right rectangle rectangled triangle scalene none of above types

Fonction triangle TriangleType triangle(double x, ` double y, double z) { // returns the triangle type according // to the values of the 3 sides x, y and z return TriangleType; }

First step: Writing the test suite Work in pair: 2 testers Tester A writes the tests for testing the triangle function Tester B reviews the test suite Example of the test suite: void allTests () { test( triangle(0, 0, 0), point); test( triangle(1, 1, 1), equilateral); test( triangle(3, 4, 5), rectangle); etc. } void test(TriangleType computedType, TriangleType expectedType) { if (computedType == expectedType) NbSuccess++; else NbFails++;

Second step: Writing the triangle function Works in pair: 2 developers Tester B becomes Developer A Tester A becomes Developer B Dev A writes the triangle functio Dev B reviews the written code

Third step: executing the test suite Display the number of failures How many failures after the very first execution How many test case have been written?