This is a simple calculator application developed for Android devices. The app provides a user-friendly interface and offers various functionalities for performing basic calculations.
- Addition: Perform addition of two numbers.
- Subtraction: Perform subtraction of two numbers.
- Multiplication: Perform multiplication of two numbers.
- Division: Perform division of two numbers.
- Percentage: Calculate the percentage of a number.
- Memory: Store and recall a number.
- DEL : Delete last entry
- AC : Reset the calculator and clear any previous calculations.
To get started with the Android Calculator App, follow these steps:
- Clone the repository to your local machine.
- Open the project in Android Studio.
- Build the project into an APK or app bundle.
- Connect your Android device to your computer.
- Transfer the APK or app bundle file to your device.
- On your Android device, navigate to the location where you transferred the file.
- Tap on the APK or app bundle file to install the application.
- Once the installation is complete, you will find the app in your app drawer.
- Open the calculator app on your Android device.
- Use the number buttons (0-9) to input your desired numbers.
- Select an operation (+, -, *, ÷) using the corresponding buttons.
- Tap the equals (=) button to display the result.
- To calculate the percentage of a number, enter the number, tap the percentage (%) button, and then enter the percentage value.
- To use the memory functionality, tap the memory (M) button to store a number. Tap it again to recall the stored number.
- Tap the clear (C) button to reset the calculator and start a new calculation.
The project contains the following files:
app/src/main/java/com/example/calculator/MainActivity.java
: The main activity class containing the calculator logic.app/src/main/res/layout/activity_main.xml
: The XML layout file defining the calculator UI.README.md
: The readme file.
Contributions to the Android Calculator App are welcome. If you have any suggestions, improvements, or bug fixes, feel free to submit a pull request.
This project is licensed under the MIT License.
- The project was developed as an assignment in UG DCS DCIT 202 course.
For any inquiries or support, please contact gamegb3#7090 on discord.