Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samyak2403/calculator-app
A basic Android calculator application that supports essential arithmetic operations. The app is designed to handle user input efficiently, evaluate mathematical expressions in real-time, and provide accurate results.
https://github.com/samyak2403/calculator-app
Last synced: 5 days ago
JSON representation
A basic Android calculator application that supports essential arithmetic operations. The app is designed to handle user input efficiently, evaluate mathematical expressions in real-time, and provide accurate results.
- Host: GitHub
- URL: https://github.com/samyak2403/calculator-app
- Owner: samyak2403
- License: mit
- Created: 2024-08-15T10:01:10.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-18T05:02:00.000Z (5 months ago)
- Last Synced: 2024-08-18T11:42:57.339Z (5 months ago)
- Language: Kotlin
- Size: 13.5 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleCalculator
A basic Android calculator application that supports essential arithmetic operations. The app is designed to handle user input efficiently, evaluate mathematical expressions in real-time, and provide accurate results.
![pv](https://pageview.vercel.app/?github_user=Calculator-App)
## 📲 Download the APK:
# Calculator App
## Features
- **Basic Arithmetic Operations**: Supports addition, subtraction, multiplication, and division.
- **Real-Time Expression Evaluation**: The app calculates intermediate results as you type, providing instant feedback.
- **Error Handling**: Prevents and handles common errors like division by zero or invalid input gracefully.
- **AdMob Integration**: Includes banner ads via AdMob, configurable through the `Control` class.
- **Modern Android Practices**: Utilizes View Binding for efficient UI management and cleaner code.## Screenshots
## Installation
To run the SimpleCalculator app, follow these steps:
1. Clone this repository:
```sh
https://github.com/samyak2403/Calculator-App.git
```
2. Open the project in Android Studio.
3. Build the project and run it on an Android device or emulator.## Usage
- **Digits and Operators**: Tap on the number buttons and operators (`+`, `-`, `x`, `/`) to enter expressions.
- **Equal (`=`)**: Press the `=` button to evaluate the expression and display the result.
- **All Clear (`AC`)**: Use the `AC` button to reset the calculator, clearing all input and results.
- **Backspace**: Tap the backspace button to remove the last entered digit or operator.
- **Clear (`C`)**: Use the `C` button to clear the current expression without resetting the entire calculator.## Code Structure
- `MainActivity.kt`: The main activity that handles all user interactions and expression evaluations.
- `ActivityMainBinding`: View Binding class for accessing UI elements.
- `Control`: A class responsible for loading AdMob banner ads.## Known Issues
- None reported.
## Contributing
Feel free to fork this repository, submit pull requests, or report issues. Contributions to improve the app are always welcome!
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contact
Created by [Samyak Kamble](https://github.com/samyak2403) - feel free to contact me!