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 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
    
    

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