Skip to content

Mayank-Garg7/smallproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Calculator Web App Readme

Screenshot 2023-09-22 102811

This is a simple web-based calculator application built using HTML, CSS, and JavaScript. It allows users to perform basic arithmetic calculations such as addition, subtraction, multiplication, and division.

Features

  1. User-Friendly Interface: The calculator has a clean and user-friendly interface with a responsive design that adapts to different screen sizes.

  2. Basic Arithmetic Operations: Users can perform addition, subtraction, multiplication, and division operations using the calculator.

  3. Clear and Delete: There are buttons labeled "AC" and "DE" for clearing the input field. "AC" clears the entire input, while "DE" deletes the last character.

  4. Decimal Point: Users can input decimal numbers by clicking the "." button.

  5. Responsive Design: The calculator is designed to work on various devices, including desktops, tablets, and smartphones.

How to Use

  1. Input Field: The input field is where you can enter your calculation.

  2. Number Buttons: Click the number buttons (0-9) to input numbers into the calculation.

  3. Operators: Use the operator buttons (+, -, *, /) to perform arithmetic operations.

  4. Decimal Point: If you need to input decimal numbers, click the "." button.

  5. Clear: The "AC" button clears the entire input field. The "DE" button deletes the last character.

  6. Equals: Click the "=" button to calculate the result of the expression entered in the input field.

Example Usage

  1. To add two numbers, enter the first number, click the "+" button, enter the second number, and then click "=" to see the result.

  2. To clear the input field, click "AC."

  3. To delete the last character in the input field, click "DE."

Customization

You can customize the calculator's appearance by modifying the "style.css" file. Adjust the colors, fonts, and layout to suit your preferences.

Limitations

  1. No Error Handling: This calculator does not have error handling for invalid input or division by zero. It relies on the JavaScript eval() function, which may not handle all edge cases.

  2. Limited Functionality: This calculator provides only basic arithmetic operations. It does not support more advanced calculations or scientific functions.

Compatibility

This calculator should work in modern web browsers that support HTML5, CSS3, and JavaScript.

Feedback and Contributions

If you encounter any issues or have suggestions for improvements, feel free to submit them. Contributions and enhancements to the code are welcome.

License

This calculator web app is provided under the MIT License. You are free to use, modify, and distribute it as per the terms of the license.


Thank you for using the Calculator Web App! We hope it serves your basic arithmetic calculation needs effectively.