Skip to content

AhmedAbdoDev/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator App

A simple and responsive calculator application built with React.js. The app features a clean UI and performs basic arithmetic operations such as addition, subtraction, multiplication, and division. It also includes percentage calculation and supports both positive and negative numbers.


Features

  • Perform basic arithmetic operations (+, -, ×, ÷).
  • Calculate percentages (%).
  • Toggle between positive and negative numbers (+/-).
  • Clear all input (C button).
  • Responsive and user-friendly design.
  • Developed with React for efficient UI rendering.

Installation

To run this project locally, follow these steps:

  1. Clone this repository:

    git clone https://github.com/AhmedAbdoDev/Calculator.git
  2. Navigate to the project directory:

    cd calculator
  3. Install the required dependencies:

    npm install
  4. Start the development server:

    npm start
  5. Open http://localhost:3000 in your browser to view the app.


How to Use

  1. Enter numbers using the on-screen buttons or your keyboard.
  2. Click the desired operation (+, -, ×, ÷, %, +/-).
  3. Press = to see the result.
  4. Use the C button to clear all inputs and start a new calculation.

Technologies Used

  • React.js: Frontend framework for building dynamic and interactive UI.
  • CSS: Styling for the application, ensuring responsiveness and a clean design.

To-Do

  • Add keyboard support for input.
  • Add support for more complex mathematical functions (e.g., square root, power).
  • Implement a history feature to track past calculations.

Contributing

Feel free to fork this repository, create a feature branch, and submit a pull request with your changes.


License

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

About

A simple and responsive calculator app built with React.js, supporting basic arithmetic operations, percentage calculation, and more. Designed with a clean UI and responsive layout.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors