Git Product home page Git Product logo

complete-triangle's Introduction

Complete Triangle

Program that determine triangle types and number of possible triangles can be generated with three inputs provided by user.


Table Of Content


Introduction

      Triangles can be classified by various properties and characteristic relating to their angles and sides. A triangle has three sides and three angles and these angles always add to 180°.

The type of triangle can be classify whether there are:

  1. Scalene (all sides are different)
  2. Isosceles (two sides are equal)
  3. Equilateral (all three sides are equal)

Pythagorean Theorem can be used to determine whether the triangle is:

  1. Right Angle (a^2 * b^2 = c^2)
  2. Acute Angle (a^2 * b^2 > c^2)
  3. Obtuse Angle (a^2 * b^2 < c^2)

Infrastructure Setup and Installation

  1. Download and install Rust compiler according to official Rust documentation.

  2. Clone the sourcecode from Git:

$ git clone https://github.com/CodesAreHonest/complete-triangle.git
  1. Change directory to the cloned repository:
$ cd complete-triangle
  1. Compile and run the sourcecode with Cargo:
$ cargo build 
   Compiling complete-triangle v0.1.0 (file:<directory>)
    Finished dev [unoptimized + debuginfo] target(s) in 2.3 secs
$ cargo run 
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/complete-triangle`
Input number for variable a -> 
  1. The program is running when it required to user to input number for three variables. The program only accepts integer as input in order to determine whether the three variables obtain are valid to form a triangle.

Highlight

Software Resources

  1. RustDT Eclipse IDE Plugin
  2. Git
  3. GDB Debugger
  4. Eclipse for Parallel Application Developers IDE
  5. Rust Compiler 1.20.0

Screenshot

The image below is the screenshot of the program.

About

Contributor

  • Chai Ying Hua

Status

This repository is still developing and maintaining as pet project.

complete-triangle's People

Contributors

codesarehonest avatar

Watchers

 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.