Skeleton code for Android Calculator, written in Java.
In this test, you are required to create a calculator app on Android! ๐ ๐ฑ
-
Perform basic calculation โ โ โ๏ธ โ
- Addition, Subtraction, Multiplication, Division
- Between two input real numbers (both integers and floats) ๐ข
-
Clear input and result (by the
Cbutton) -
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
- Do nothing when
-
You cannot use any external library ๐ฝ ๐ซ
- E.g.
Expr4J
- E.g.
-
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
- We have prepare a few skeleton project and codes for you, you are welcome to:
-
Clone the existing skeleton project on GitHub (Environment-ready)
-
Download the individual files by downloading the zip on the GitHub Repositories and grab what you need
-
Write from scratch! ๐ป
-
- Grab user input with numpad click
- Implement calculation logic
- Check user input validity when
=button is clicked - Display Anwser
- Clear input and result when
Cbutton 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.