Camerash/AndroidJavaCalculator

Skeleton code for Android Calculator, written in Java

โ˜… 1Forks 1JavaGitHub โ†—Compare

README

Android Java Calculator

Skeleton code for Android Calculator, written in Java.

Introduction โ„น๏ธ

In this test, you are required to create a calculator app on Android! ๐ŸŽ‰ ๐Ÿ“ฑ

Requirements ๐Ÿ““

  • Perform basic calculation โž• โž– โœ–๏ธ โž—

    • Addition, Subtraction, Multiplication, Division
    • Between two input real numbers (both integers and floats) ๐Ÿ”ข
  • Clear input and result (by the C button)

  • Display current user input

    • Simple equation with actions involving two numbers are already sufficient
    • E.g.: 135 + 252.5
  • Display result of equation when user hit = button

  • Error checking for user inputs ๐Ÿ’ป

    • Do nothing when = is hit if error is present

Restrictions โ›”

  • You cannot use any external library ๐Ÿ‘ฝ ๐Ÿšซ

    • E.g. Expr4J
  • Copying other's work or source code is strictly prohibited ๐Ÿ˜  (Except for the skeleton codes we provide)

    • Once found, the related intervieww will be immediately disqualified
    • We take integrity seriously here in USThing, so please don't cheat ๐Ÿ˜‰
    • Using your own work is fine, but you need to provide the proof of ownership

Resources ๐Ÿ˜

  • We have prepare a few skeleton project and codes for you, you are welcome to:

Checkpoints ๐Ÿ

  • Grab user input with numpad click
  • Implement calculation logic
  • Check user input validity when = button is clicked
  • Display Anwser
  • Clear input and result when C button is clicked

Feel free to ask our members on the scene if you have any questions ๐Ÿ‘

Happy Coding! ๐ŸŽŠ

Used intended for USThing coding challenge only.

Contributors

Camerash

Issues