/koltin-calculator

A simple yet powerful calculator built using Kotlin. This project demonstrates the fundamental concepts of Kotlin, including UI development, event handling, and basic arithmetic operations.

Primary LanguageKotlinMIT LicenseMIT

Kotlin Calculator

Kotlin License

A simple yet powerful calculator built using Kotlin. This project demonstrates the fundamental concepts of Kotlin, including UI development, event handling, and basic arithmetic operations.

Features

  • Supports basic arithmetic operations: Addition, Subtraction, Multiplication, and Division
  • Intuitive and user-friendly interface
  • Error handling for invalid inputs (e.g., division by zero)
  • Lightweight and efficient performance

Installation

Prerequisites

  • Kotlin 1.9+ installed
  • JDK 11+ (if running as a Java application)
  • Android Studio (optional) for Android development

Steps

  1. Clone the Repository
    git clone https://github.com/RohanCyberOps/kotlin-calculator.git
    cd kotlin-calculator
  2. Run the Application If this is a console-based Kotlin application:
    kotlinc Calculator.kt -include-runtime -d calculator.jar
    java -jar calculator.jar
    If this is an Android application, open the project in Android Studio and run it on an emulator or physical device.

Usage

  • Enter two numbers and select the operation.
  • Press "Calculate" to get the result.
  • Handles invalid inputs gracefully.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or feedback, reach out via: