Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Developed a responsive calculator application that performs basic arithmetic operations such as addition, subtraction, multiplication, and division. Implemented an intuitive user interface with real-time input handling and error validation using HTML, CSS, and JavaScript.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages