Coder Social home page Coder Social logo

forhadakhan / basic-calculator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 629 KB

The Basic Calculator is a simple web application built with Vite.js and React. Perform basic arithmetic operations quickly and easily with this user-friendly calculator. Supports decimal numbers and parenthesis for more complex calculations. Try it now.

Home Page: https://forhadakhan.github.io/basic-calculator/

License: Other

JavaScript 92.05% HTML 2.81% CSS 5.14%
bootstrap bootstrap5 calculator calculator-application calculator-javascript css gh-pages mathjs react reatctjs

basic-calculator's Introduction

Basic Calculator

A simple calculator web application built with Vite and React. This calculator allows you to perform basic arithmetic operations, evaluate mathematical expressions, and provides a user-friendly interface for efficient calculations.

Features

  • Addition: Perform addition operations by clicking on the "+" button or using the "+" key on your keyboard.
  • Subtraction: Perform subtraction operations by clicking on the "-" button or using the "-" key on your keyboard.
  • Multiplication: Perform multiplication operations by clicking on the "x" button or using the "*" key on your keyboard.
  • Division: Perform division operations by clicking on the "/" button or using the "/" key on your keyboard.
  • Decimal Numbers: Use decimal numbers in your calculations by clicking on the decimal point (".") button.
  • Parenthesis: Group expressions using parentheses to ensure proper order of operations.
  • Error Handling: The calculator provides error handling for invalid expressions and division by zero.
  • Digit Limit: The calculator includes a digit limit to prevent overflowing the display with excessively long numbers.

Live Demo

Try the calculator online: Basic Calculator

Screenshots

Calculator Screenshot

Installation and Usage

No installation is required to use this calculator. Simply access the live demo link mentioned above in your web browser, and you can start performing calculations right away.

Technologies Used

  • Vite: A fast, opinionated web dev build tool that serves as the foundation for this project.
  • React: A JavaScript library for building user interfaces.
  • JavaScript: The programming language used to develop the calculator logic.
  • HTML: The markup language used for structuring the calculator's user interface.
  • CSS: The styling language used for enhancing the visual appearance of the calculator.

Development

If you want to explore or contribute to the development of this calculator, follow these steps:

  1. Clone the repository: git clone https://github.com/forhadakhan/basic-calculator.git
  2. Navigate to the project directory: cd basic-calculator
  3. Install the dependencies: npm install
  4. Start the development server: npm run dev
  5. Open your browser and visit localhost link to see the calculator in action.

The development server uses Vite to build the project. Any changes you make to the source code will be automatically reflected in the browser without requiring a manual reload.

You can explore the project structure and modify the code in the src directory. The entry point for the application is src/main.js, and the React components can be found in the src/components directory.

Feel free to experiment, add new features, fix bugs, or improve the calculator's functionality. Once you're satisfied with your changes, you can submit a pull request to contribute your updates to the project.

Feedback and Contributions

If you have any suggestions, feedback, or would like to contribute to this project, please feel free to open an issue or submit a pull request. Your contributions are highly appreciated!

License

This project is licensed under the MIT License.

basic-calculator's People

Contributors

forhadakhan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.