/Calculadora

Projeto de uma Calculadora JavaScript.

Primary LanguageHTML

Calculadora Simples

Este é um projeto de uma calculadora simples desenvolvida utilizando JavaScript, HTML, CSS e Bootstrap.


Estrutura do Projeto

  • index.html: O arquivo HTML principal que contém a estrutura da página.
  • calculadora.js: O script JavaScript responsável pela lógica da calculadora.
  • calculadora.css: O arquivo de estilo CSS que define a aparência da calculadora.

Funcionalidades

A calculadora suporta as seguintes operações:

  • Soma (+)
  • Subtração (-)
  • Multiplicação (*)
  • Divisão (/)

Além disso, possui as seguintes funcionalidades:

  • Botão "=": Realiza a operação selecionada.
  • Botão ".": Adiciona uma casa decimal ao número atual.
  • Botão "C": Limpa o display.
  • Botão "CE": Limpa o display e o histórico de operações.

Como Usar

  1. Abra o arquivo index.html em um navegador web.
  2. Utilize os botões numéricos para inserir os valores desejados.
  3. Selecione a operação desejada usando os botões de operação.
  4. Pressione o botão "=" para obter o resultado da operação.
  5. Utilize o botão "." para adicionar casas decimais conforme necessário.
  6. O botão "C" limpa o display, e o botão "CE" limpa o display e o histórico de operações.

Histórico de Operações

As operações realizadas são registradas e exibidas ao lado da calculadora, formando um histórico de cálculos.


Tecnologias Utilizadas

  • JavaScript: Para a lógica da calculadora.
  • HTML: Estruturação da página.
  • CSS: Estilização da calculadora.
  • Bootstrap: Framework para o layout responsivo.

Contribuições

Contribuições são bem-vindas! Sinta-se à vontade para propor melhorias, correções de bugs ou novas funcionalidades.


Esperamos que essa calculadora simples seja útil para suas necessidades de cálculos!


Calculator

This is a project for a simple calculator developed using JavaScript, HTML, CSS, and Bootstrap.


Project Structure

  • index.html: The main HTML file that contains the page structure.
  • calculator.js: The JavaScript script responsible for the calculator's logic.
  • calculator.css: The CSS style file that defines the calculator's appearance.

Features

The calculator supports the following operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

Additionally, it has the following functionalities:

  • "=" Button: Performs the selected operation.
  • "." Button: Adds a decimal point to the current number.
  • "C" Button: Clears the display.
  • "CE" Button: Clears the display and the operation history.

How to Use

  1. Open the index.html file in a web browser.
  2. Use the numeric buttons to input the desired values.
  3. Select the desired operation using the operation buttons.
  4. Press the "=" button to get the result of the operation.
  5. Use the "." button to add decimal places as needed.
  6. The "C" button clears the display, and the "CE" button clears the display and the operation history.

Operation History

The performed operations are recorded and displayed next to the calculator, forming a history of calculations.


Technologies Used

  • JavaScript: For the calculator's logic.
  • HTML: Page structure.
  • CSS: Styling of the calculator.
  • Bootstrap: Framework for responsive layout.

Contributions

Contributions are welcome! Feel free to propose improvements, bug fixes, or new features.


We hope this simple calculator proves helpful for your calculation needs!