CoffeeTableEspresso / Android-Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions

  1. Fork this repo into your own github account
  2. Complete the task (TODO tags in the project and in the comments)
  3. Commit your code to your fork (we want to be able to see your source code!)
  4. Submit a publicly viewable link to your forked repo in the application form
  5. If you have any comments or assumptions, add them to this README.md file

Task

Using good coding practice and techniques, implement the functions of the simple calculator. The manditory functions are the +,-,x and / while the other ones are optional and for you to show off your mad skills (e.g. trig functions, hex calculator, exp functions, etc.).

Your comments or assumptions

  • altered layout slightly, for purely cosmetic reasons.
  • assumed desired precision was double.
  • assumed order First Input - Second Input for subtraction, and same order for all other operators.
  • added extra function atan2(First Input, Second Input), max, min.
  • added extra operation exponentiation.
  • assumed that Toast.makeText should be used for displaying all results and errors.
  • was a bit unclear about the instructions to "put answer in second activity", but made a functional app, found in CalculatorActivity.

About


Languages

Language:Java 100.0%