Code Monkey home page Code Monkey logo

daniel_triangle-tracker's Introduction

Triangle tracker

Javascript web App

By Isaiah Mekenye

Description

A Javascript web app that allows the user to input the lengths of the sides of a triangle, and returns whether these sides form an Equilateral, Isosceles, or Scalene triangle.

Setup/Installation Requirements

The following installations should be run in your command line interface.

Installation

  • Clone this repository.
  • On the terminal, navigate to your workspace directory.
  • Run https://github.com/imekenye/Triangle-tracker.git

Known Bugs

There no bugs but if any you contact me HERE

Behaviour Driven Development

1. Behaviour

Our program should handle:

All triangle sides must be equal.

INPUT EXAMPLE: SIDE A = 2 SIDE B = 2 SIDE C = 2
OUTPUT EXAMPLE: Equilateral Triangle all sides are equal.

2. Behaviour

Our program should handle:

Two triangle sides must be equal.

INPUT EXAMPLE: SIDE A = 2 SIDE B = 2 SIDE C = 4
OUTPUT EXAMPLE: Isoceles Triangle two sides are equal.

3. Behaviour

Our program should handle:

None of the sides are be equal.However, the sum of any two sides of the triangle must be greater than the third side.

INPUT EXAMPLE: SIDE A = 2 SIDE B = 4 SIDE C = 3
OUTPUT EXAMPLE: Scalene Triangle none of the sides are equal.

4. Behaviour

Our program should handle:

if the sum of any two sides of the triangle is equal to or less than the third remaining side

INPUT EXAMPLE: SIDE A = 2 SIDE B = 2 SIDE C = 10
OUTPUT EXAMPLE: Cannot form triangle!

5. Behaviour

Our program should handle:

if not a number

INPUT EXAMPLE: SIDE A = BLANK SIDE B = BLANK SIDE C = BLANK
OUTPUT EXAMPLE: Please enter a number for all sides!.

Technologies Used

  • HTML
  • CSS
  • JAVASCRIPT

Support and contact details

If you got questions or need support contact me via email [at]ismekenye[at]gmail[dot]com

License

MIT Copyright (c) 2018 isaiah mekenye

daniel_triangle-tracker's People

Contributors

imekenye avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.