Este é um projeto de uma calculadora simples desenvolvida utilizando JavaScript, HTML, CSS e Bootstrap.
- 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.
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.
- Abra o arquivo
index.html
em um navegador web. - Utilize os botões numéricos para inserir os valores desejados.
- Selecione a operação desejada usando os botões de operação.
- Pressione o botão "=" para obter o resultado da operação.
- Utilize o botão "." para adicionar casas decimais conforme necessário.
- O botão "C" limpa o display, e o botão "CE" limpa o display e o 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.
- 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 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!
This is a project for a simple calculator developed using JavaScript, HTML, CSS, and Bootstrap.
- 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.
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.
- Open the
index.html
file in a web browser. - Use the numeric buttons to input the desired values.
- Select the desired operation using the operation buttons.
- Press the "=" button to get the result of the operation.
- Use the "." button to add decimal places as needed.
- The "C" button clears the display, and the "CE" button clears the display and the operation history.
The performed operations are recorded and displayed next to the calculator, forming a history of calculations.
- JavaScript: For the calculator's logic.
- HTML: Page structure.
- CSS: Styling of the calculator.
- Bootstrap: Framework for responsive layout.
Contributions are welcome! Feel free to propose improvements, bug fixes, or new features.
We hope this simple calculator proves helpful for your calculation needs!