/triangles

web page to take in side inputs and display triangle info - testing and branching practice - pro work environment- Epicodus

Primary LanguageJavaScript

Triangle Tracker

A webpage to show you different triangles based off of the numbers you input for each side.

By Mariam Alaeddin & Keturah Howard 2/4/2020

Description

Are you wanting to know how to build different types of triangles like equalateral, isoceles or scalene? This webpage will help you find out JUST THAT! All you need to do is type in any number of your choosing for each side and we will distribute an answer with what type of triangle those numbers would form. ENJOY!

Specs

  • Behavior: If input is not a number
    • Input: "hello
    • Output: Alert - NO!!!!!
  • Behavior: Type in a single number for any side.
    • Input: "side1" = 2
    • Output: 2
  • Behavior: Type in a single number for multiple sides.
    • Input: "side1" = 2; "side2" = 2; "side3" = 2
    • Output: 2, 2, 2
  • Behavior: Returns if sides make up a triangle or not.
    • Input: "side1" = 2; "side2" = 2; "side3" = 88;
    • Output: "not a triangle"
  • Behavior: Returns equalaterl, type in the same number for all three sides.
    • Input: "side1" = 2; "side2" = 2; "side3" = 2
    • Output: "Equalateral..."
  • Behavior: Returns isosceles, if two sides are equal.
    • Input: "side1" = 2; "side2" = 2; "side3" = 3
    • Output: "Isosceles..."
  • Behavior: Returns scalene, if two sides are equal.
    • Input: "side1" = 2; "side2" = 1; "side3" = 3
    • Output: "scalene..."

Setup/Installation Requirements

  • Open Git and GitHub
  • Find language-survey repo under MMAlaeddin UserID
  • Clone the file in Git
  • Open file

Known Bugs

No known bugs

Support and contact details

Mariam , maralaeddin@gmail.com

Technologies Used

HTML, CSS, JavaScript and JQuery

License

MIT License

Copyright (c) 2020 Mariam