Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 1.52 KB

File metadata and controls

76 lines (52 loc) · 1.52 KB

Calculator

A simple and responsive web-based Calculator built using HTML, CSS, and JavaScript. It performs basic arithmetic operations with a clean and intuitive user interface.

Features

  • Perform addition, subtraction, multiplication, and division
  • Real-time calculation of expressions
  • Clear display functionality
  • Responsive design for desktop and mobile devices
  • User-friendly interface
  • Basic error handling for invalid inputs

Tech Stack

  • HTML5
  • CSS3
  • JavaScript (ES6)

Project Structure

├── index.html ├── style.css ├── script.js └── README.md


# Installation

1. Clone the repository:

```bash
git clone https://github.com/your-username/calculator.git
  1. Navigate to the project folder:
cd calculator
  1. Open index.html in your web browser.

Usage

  1. Enter numbers using the calculator buttons.
  2. Select an arithmetic operator.
  3. Press = to view the result.
  4. Use C to clear the display.

Future Improvements

  • Scientific calculator functions
  • Keyboard support
  • Calculation history
  • Dark and Light mode
  • Percentage and square root operations
  • Memory functions

Learning Objectives

This project demonstrates:

  • DOM manipulation
  • Event handling in JavaScript
  • Responsive web design
  • User input validation
  • Basic arithmetic logic implementation

Contributing

Contributions are welcome! Feel free to fork the repository, create a feature branch, and submit a pull request.

License

This project is licensed under the MIT License.