This project is a Calculator designed to perform basic arithmetic operations. It provides a clean and intuitive interface for calculations and supports both mouse and keyboard inputs. This app is ideal for quick calculations and includes features such as clearing inputs, removing the last character, and evaluating percentages.
- Basic Arithmetic Operations: Perform addition, subtraction, multiplication, division, and percentage calculations.
- Keyboard Input Support: Use your keyboard for entering numbers, operators, and pressing Enter to evaluate.
- Error Handling: Alerts users if invalid inputs or formats are used.
- Clear Functions:
- AC (All Clear): Clears the entire input.
- C (Clear Last): Deletes the last entered character.
- Real-time Evaluation: Automatically handles percentage conversions (
%
) to/100
.
- HTML: For structuring the web page.
- CSS: To enhance the user interface (you can customize).
- JavaScript: For implementing the calculator's functionality and handling user interactions.
- Open the Calculator:
- Launch the app in a web browser.
- Enter Numbers and Operators:
- Use the on-screen buttons or type directly using your keyboard.
- Operators supported:
+
,-
,*
,/
,%
.
- Calculate:
- Press
=
on the screen orEnter
on your keyboard to see the result.
- Press
- Clear:
- Use
AC
to clear all input orC
to delete the last entered character.
- Use