This Application able to perform arithmetic operation like
- Addition
- Subtraction
- Multiplication
- Division
- Modulus
- Power(Exponent)
- Java Backend
- XML For UI
IDE-> Android Studio
Supported In Android Version >=5
- User can save last result of calculation.
- User can clear result by reset symbol ("C")
- Multi Digit Calculator (Operand can be perform on more than one digit number)
- Check For ZeroDivisionError (a/0 is infinite that can't be stored, so ans will give zero division error, that is reason we also can't find a%0 for some integer 'a'.)
- Clone this Project
- Open Project In Android Studio having Android Support >=5 And All Necessary SDK Tools And Libraries.
- Build This Project By Clicking Build Button on Android Studio
- Create Emulator to run this App in Virtual Device OR You can use your Mobile as Emulator( Search It On Google for Steps)
- After Creating Emulator, Now Click Play Button in Android Studio(Beside Emulator Name)
- It will take some time as building and running of app depends on Hardware performance. For having faster running of application without any latency/overhead, you should use pc having 16+ GB RAM , And Should have 4+ Processors.
- When App Installation Completed, Calculator Application Open in Emulator ,Where You can Perform Any Arithmetic Operation
note You can use any other IDE.
-
Now doing Addition Operation that is 5+6 in this case by clicking "+" icon.
-
You will get 11 as output for previous operation, now multiplying previous ans with 5 by clicking "X" icon.
-
You will get 55 as output for previous operation, now taking previos ans exponent with 2 by clicking "X^2" icon .
NOTE -> X^2 Icon doesn't only to squaring, it can do a^b operation where(b>=0), By Mistake i have choosen wrong icon for
exponenet that denote only squaring. Well this is not major issue, Later on I will replace it with "^" Icon.
- You will get 3025 as output for previous operation, now to save ans click equal operator("=" icon) and ans will be saved as shown.
Last Result = 3025
-
Adding 99 with 333 (for Demonstrating Multi Digits Operation).
-
You will get output 432 for previous operation,now dividing ans by 3 by clicking divide symbol.
-
You will get Previous output as 144 that is now dividing with 0 by clicking divide symbol (For Demonstrating Zero Division Error).
a/0 or a%0 will show zero division error and hence all value will get reset to 0 after clicking any other digit or clear icon.
-
You can reset last save data and current operation by clicking "C" Symbol and you will get below result.
- This App Performing All task in main thread that cause freezing( delayed) in Application, To Solve this , need for multithreading.
- This Is Basic Calculator can be extended with scientific and programming calculator by adding more functionalities.