Area Calculator - TSHIRTS

Area-Calc-DARK-PR_mockup_Wrinkle-Front_Eggplant.png
Area-Calc-LIGHT-PR_mockup_Wrinkle-Front_Creme.png
Area-Calc-LIGHT-PR_mockup_Wrinkle-Front_White.png
mockup_Flat-Back_Black.png
mockup_Flat-Back_Eggplant.png
mockup_Flat-Back_New-Silver.png
mockup_Flat-Back_White.png
SS high res b.jpg
SS high res c.jpg
SS high res p.jpg
SS high res w.jpg
T-female-back.jpg
T-female-front.jpg
T-fold.jpg
Area-Calc-DARK-PR_mockup_Wrinkle-Front_Black.png
Bella_+_Canvas_6500 B.jpg
Bella_+_Canvas_6500 w.jpg
black B.jpg
white B.jpg
white HR.jpg
b HR.jpg
Area-Calc-DARK-PR_mockup_Wrinkle-Front_Eggplant.png
Area-Calc-LIGHT-PR_mockup_Wrinkle-Front_Creme.png
Area-Calc-LIGHT-PR_mockup_Wrinkle-Front_White.png
mockup_Flat-Back_Black.png
mockup_Flat-Back_Eggplant.png
mockup_Flat-Back_New-Silver.png
mockup_Flat-Back_White.png
SS high res b.jpg
SS high res c.jpg
SS high res p.jpg
SS high res w.jpg
T-female-back.jpg
T-female-front.jpg
T-fold.jpg
Area-Calc-DARK-PR_mockup_Wrinkle-Front_Black.png
Bella_+_Canvas_6500 B.jpg
Bella_+_Canvas_6500 w.jpg
black B.jpg
white B.jpg
white HR.jpg
b HR.jpg

Area Calculator - TSHIRTS

79.00

A neat area calculator in python!

CODE:

from math import pi

print "Welcome to the Area Calculator!"

exit = "Y"

while (exit == "Y"):

    option = raw_input("Enter C for Circle, T for Triangle, S for Square, "
                       "R for Rectangle, P for Parallelogram, or TZ for Trapezoid: ")

    option = option.upper()

    if option == 'C':
        radius = float(raw_input("Enter the radius: "))
        area = pi * radius**2
        print ("Area: %.2f." % (area))
    elif option == 'T':
            base = float(raw_input("Enter the base: "))
            height = float(raw_input("Enter the height: "))
            area = (0.5)*base*height
            print ("Area: %.2f." % (area))
    elif option == 'S':
            length = float(raw_input("Enter the length of any side: "))
            area = length*length
            print ("Area: %.2f." % (area))
    elif option == 'R':
            length = float(raw_input("Enter the length: "))
            width = float(raw_input("Enter the width: "))
            area = length*width
            print ("Area: %.2f." % (area))
    elif option == 'P':
            base = float(raw_input("Enter the base: "))
            height = float(raw_input("Enter the height: "))
            area = base*height
            print ("Area: %.2f." % (area))
    elif option == 'TZ':
            top_base = float(raw_input("Enter the top base: "))
            bottom_base = float(raw_input("Enter the bottom base: "))
            height = float(raw_input("Enter the height: "))
            area = ((top_base+bottom_base)/2)*height
            print ("Area: %.2f." % (area))
    else:
            print "Make sure you enter the correct character type!"
    exit = raw_input("Type Y to start again, or N to exit: ")
    exit = exit.upper()
print "Exiting"

SIZE:
COLOUR:
ITEM:
Quantity:
Add To Cart

All Syntaxd products are printed and shipped world-wide from a state-of-the-art facility in California, USA.

We use super-high res printing files to ensure graphics are super crisp and clean! 

Our ultra-premium short-sleeve T-shirts feature the following for ultimate comfort: 

  • 100% certified organic soft-spun cotton

  • Pre-shrunk

  • Seamless collar

  • Double-needle sleeve and bottom hem

  • Shoulder-to-shoulder tape and seamed collar

  • Tubular construction

  • Fabric weight 4.3 oz/yd²


Our ultra-premium long-sleeve T-shirts feature the following for ultimate comfort: 

  • 100% certified organic soft-spun cotton

  • Long sleeves

  • Cuffed hands

  • Durable ribbed neckband

  • Double stitched

  • Fabric weight 5.0 oz/yd²

  •