11. Flowcharts Classify Quadrilateral by Sides

The pseudocode below checks to see if a quadrilateral has all sides equal, or just opposite sides equal, and classifies it accordingly.
ALGORITHM classifyQuadrilateralBySides()

BEGIN
    INPUT sidesEqual, oppositeSidesEqual
    IF sidesEqual = TRUE THEN
        PRINT "Rhombus"
    ELSEIF oppositeSidesEqual = TRUE THEN
        PRINT "Parallelogram"
    ELSE
        PRINT "Other quadrilateral"
    ENDIF
END


Tasks

  1. On the flowchart, fill in the shapes with text to represent the pseudocode above.

On the flowchart, fill in the shapes with text to represent the pseudocode above.

../_images/quadrilaterals_by_sides.png