Term 1 Project: Is that a Triangle?
When we don't have time for an exam!
Build a Program - using procedures blocks, conditional and iteration that asks a user to think of shape and then enter the number of sides of that shape. The use of a List is optional, but all of your programs should include procedural abstraction (when you build your own blocks)

These are the BASIC minimum requirements - you are expected to add unique functionality or user interface extensions. Your program structure, variable names and extensions should be both unique from your neighbors code and use proper naming techniques.
IF the user Enters 3 and they are thinking of a triangle then refer to then you need to prompt for more information
If user is thinking of a triangle
Prompt the user to enter the three side lengths and then use the Triangle Inequality Therom
//the sum of two sides must be larger than the 3rd side
a + b > c
a + c > b
b + c > a
If all of these conditions evaulate to true then it is possible to draw a triangle with those values
Display/Communicate the results of your triangle testing (above)
Is it an equilateral?
Go Crazy - is it a right triangle?
hint: asquared + bsquared = csquared
Can you draw it?
hint - you will need the angles so look below for the
Law of Cosines
TIP: SNAP has a cosine, sine and tangent operator - look at the
sqrt
block


Extensions: Design a user interface, tell them more about the triangle, calculate the area? (1/2 base * height)...and on and on and on
Last updated