A fun JavaScript project with a 10% twist!
This is not your ordinary calculator!
It performs standard arithmetic operations but with a 10% probability of giving a wrong result by adding random noise (±10%).
Why?
To simulate real-world scenarios where sensors or machines introduce errors and to practice JavaScript logic, DOM manipulation, and randomization techniques.
- HTML5 – Structure
- CSS3 – Styling
- JavaScript (Vanilla) – Logic and Interactivity
✔ Standard calculator operations (+, −, ×, ÷)
✔ Simple and responsive UI
✔ Faulty Mode: Random error injection (10% probability)
✔ Fun and unpredictable results!
https://ashu20122005.github.io/Faulty-Calculator/
- Clone this repository:
git clone https://github.com/ashu20122005/Faulty-Calculator
Open index.html in any modern web browser.
✨ Future Improvements Add Normal / Faulty toggle
Show an indicator when the result is faulty
Improve UI with animations
🤝 Contributing Feel free to fork, open issues, and submit pull requests!
📜 License This project is licensed under the MIT License.