Code Monkey home page Code Monkey logo

calculator's Introduction

Calculator

Calculator is a simple web application that provides basic arithmetic operations. It allows users to perform calculations, including addition, subtraction, multiplication, and division.

Table of Contents

Demo

Live Demo

Features

  • Calculator interface with buttons for digits (0-9) and operations (+, -, *, /).
  • Ability to perform multiple consecutive operations but it can only evaluate a single pair of numbers at a time
  • Clear button to reset the calculation.
  • Delete button to delete the last digit.
  • Display area to show the current expression and result.

Repository Structure

The repository hase the following structure:

  • index.html: The main HTML file that contains the user interface.
  • script.js: The JavaScript file that handles app functionality.
  • style.css: The CSS file that styles the user interface.
  • README.md: The README file that provides an overview of the project and instructions for running the game.

Installation

To run this project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/sofiabaezzato/calculator.git
  2. Navigate to the project directory:

    cd calculator

Usage

  1. Open the index.html file in your preferred web browser.
  2. Use the digit buttons to enter numbers for the calculation.
  3. Click on the operation buttons to perform arithmetic operations.
  4. The result will be displayed in the calculator's display area.
  5. Use the "DEL" button to delete the last digit or use the "AC" button to clear the current calculation and start over.

calculator's People

Contributors

sofiabaezzato 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.