Giter Club home page Giter Club logo

calculator's Introduction

Calculator Project Readme

This project is a simple calculator implemented using HTML, CSS, and JavaScript. It allows users to perform basic arithmetic operations, view computation history, and clear the history.

Features

Calculator Operations

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (÷)
  • Percentage (%)
  • Toggle Sign (+/-)
  • Clear All (AC)
  • Delete Last Entry (DE)
  • Decimal Point (.)

Computation History

  • Users can view a history of their computations.
  • The history is limited to the last 10 entries.

Clear History

  • Users can clear the computation history by clicking the "Clear History" button.

Toggle History Visibility

  • Users can toggle the visibility of the computation history by clicking the "History" button.

Usage

  1. Performing Calculations

    • Click on the digits (0-9) to input numbers.
    • Use the arithmetic operation buttons (+, -, *, ÷, %) for calculations.
    • Click the "=" button to see the result on the screen.
    • Use the "AC" button to clear all entries.
    • Use the "DE" button to delete the last entry.
    • Toggle the sign of a number using the "+/-" button.
    • Add decimal points using the "." button.
  2. Viewing Computation History

    • Click on the "history" button to toggle the visibility of the computation history.
    • The history displays the last 10 computation entries.
  3. Clearing History

    • Click on the "Clear History" button to remove all computation history.

Project Structure

  • HTML (index.html):

    • Defines the structure of the calculator and computation history.
    • Includes necessary elements and classes.
  • CSS (index.css):

    • Styles the calculator and computation history elements.
    • Implements transitions and animations for a smoother user experience.
  • JavaScript (index.js):

    • Defines functionality for the calculator operations.
    • Handles user interactions and updates the screen accordingly.
    • Manages computation history and its visibility.

Dependencies

  • The project has no external dependencies and runs on basic HTML, CSS, and JavaScript.

Development and Contributions

  • This project is open for contributions.
  • Feel free to enhance and extend the functionality.
  • Follow common coding standards and practices.
  • Submit pull requests for review.

calculator's People

Contributors

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