#!/usr/bin/env python

""" Assignment 1, Exercise 2, INF1340, Fall, 2015. Name that shape.

This module contains one function name_that_shape(). It prompts the user
to input the number of sides in a shape and outputs the name of the shape.

"""

__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"


def name_that_shape():
    """
    For a given number of sides in a regular polygon, returns the shape name

    Inputs:

    Expected Outputs:

    Errors:

    """

    no_of_sides = input("Please provide the number of sides of a shape that you are thinking about: ")

    if no_of_sides == 3:
        print("The polygon you are thinking about is a TRIANGLE")
    elif no_of_sides == 4:
        print("The polygon you are thinking about is a QUADRILATERAL")
    elif no_of_sides == 5:
        print("The polygon you are thinking about is a PENTAGON")
    elif no_of_sides == 6:
        print("The polygon you are thinking about is a HEXAGON")
    elif no_of_sides == 7:
        print("The polygon you are thinking about is a HEPTAGON")
    elif no_of_sides == 8:
        print("The polygon you are thinking about is an OCTAGON")
    elif no_of_sides == 9:
        print("The polygon you are thinking about is an ENNEAGON")
    elif no_of_sides == 10:
        print("The polygon you are thinking about is a DECAGON")
    else:
        print("Error")

name_that_shape()

"""

Test Case 1
user input = 7
expected output = The polygon you are thinking about is a Heptagon
actual output = The polygon you are thinking about is a Heptagon

Test Case 2
user input = 4
expected output = The polygon you are thinking about is Quadrilateral
actual output = The polygon you are thinking about is Quadrilateral

Test Case 3
user input = 9
expected output = The polygon you are thinking about is an ENNEAGON
actual output = The polygon you are thinking about is an ENNEAGON

"""


@@ -1924,13 +1924,489 @@
 NEAGON%0A%0A
+Test Case 4%0Auser input = 1%0Aexpected output = Error%0Aactual output = Error%0A%0ATest Case 5%0Auser input = 11%0Aexpected output = Error%0Aactual output = Error%0A%0ATest Case 6%0Auser input = %22three%22%0Aexpected output = Error%0Aactual output = Error%0A%0ATest Case 7%0Auser input = 4.5%0Aexpected output = Error%0Aactual output = Error%0A%0ATest Case 8%0Auser input = 4.0%0Aexpected output = The polygon you are thinking about is a QUADRILATERAL%0Aactual output = The polygon you are thinking about is a QUADRILATERAL%0A
 %22%22%22%0A%0A

test cases complete