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
- Navigate to the project folder:
- Open
index.html in your web browser.
Usage
- Enter numbers using the calculator buttons.
- Select an arithmetic operator.
- Press = to view the result.
- 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.