Skip to content

Instantly share code, notes, and snippets.

@KristofferV
Last active November 13, 2017 10:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save KristofferV/952493dfa53b1349e684c4fa2f203403 to your computer and use it in GitHub Desktop.
Save KristofferV/952493dfa53b1349e684c4fa2f203403 to your computer and use it in GitHub Desktop.
C.A.G Geometry Calculator

C.A.G Geometry Calculator

The mission should you choose to accept:

Create software that calculates the:

  1. circumference of a triangle
  2. area of a triangle
  3. circumference of an rectangle
  4. area of an rectangle
  5. total area of multiple shapes (not only triangles and rectangles but also other type of shapes)

Here you can find how circumference and area is calculated http://www.mathinary.com/triangle__right_angled_area_and_circumference_of_a_triangle.jsp

Choose your preferred coding language. If you have knowledge of several coding languages you can supply one solution for each language.

The software should of course be tested properly using the testing framework of your taste.

Other things we will look for are DRY, SOLID, KISS, TDD.

If you have any questions contact kristoffer.vidmo@cag.se

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment