- Project Description
- Requirements
- Features
- Techniques and Technologies Used
- Accessing the Project
- Opening and Running the Project
- Final Considerations
- Developers
This project implements a simple calculator using HTML
, CSS
, and JavaScript
. The calculator offers basic functionalities of addition, subtraction, multiplication, and division.
-
Numeric Buttons:
- The interface should include numeric buttons from 0 to 9 for operand input.
-
Operation Buttons:
- The interface should include buttons for the operations of addition (+), subtraction (-), multiplication (*), and division (/).
-
Result Display:
- The calculator should display the result of operations.
-
Clear Button:
- The interface should include a "C" button to clear and restart the calculation process.
-
Back Button:
- The interface should include a "<" button to delete the last entered character.
-
Basic Operations:
- The calculator should support simple operations with two operands, such as
1 + 1
,5 - 3
,10 / 2
, etc.
- The calculator should support simple operations with two operands, such as
-
Basic Operations:
- Perform addition, subtraction, multiplication, and division operations with two operands.
-
Interface:
- Design an interface with numeric and operation buttons.
- Languages Used:
HTML
,CSS
, andJavaScript
- Development Environment:
Visual Studio Code
- Version Control Tools:
Git
andGitHub
You can access the project files here or download it as a zip file here.
To open and run the project locally on your computer, follow the steps below:
- Choose or create a folder on your computer to store the project. E.g.,
d:\folder_name
- Create a repository on GitHub or use an existing one.
- Clone the repository to your local machine using the command
git clone <repository_URL>
in your terminal or Git Bash. - Make sure you have Visual Studio Code installed on your computer. If you don't, you can download it here.
- Open Visual Studio Code.
- In the main menu, select "File" -> "Open Folder" and navigate to the directory where you cloned the project.
- Select the project folder and click "Open".
- Now you have access to the project files in your development environment.
- Locate the folder named
calculadora
. - Inside the project folder, you will find the HTML, CSS, and JavaScript files that compose the calculator.
- Now you can make modifications to the project, if desired, using Visual Studio Code.
- To run the project, simply open the main HTML file in your web browser. To do this, right-click on the main HTML file (
calculadora.html
) and select "Open with" and choose your preferred browser. - After opening the HTML file in the browser, you can use the calculator and test its functionalities.
- If you want to make changes to the code, you can do so in the HTML, CSS, and JavaScript files using Visual Studio Code.
- After making the desired changes, save the files and refresh the page in the browser to see the changes in action.
- Once you have completed your modifications and testing, you can upload the modified code to GitHub following the Git instructions.
Make sure your development environment settings, such as Git and Visual Studio Code installation, are correctly configured and up to date.
This project was developed as part of an exercise to practice HTML, CSS, and JavaScript skills. Feel free to contribute or provide feedback!