Skip to content

ashu20122005/Faulty-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Faulty Calculator

A fun JavaScript project with a 10% twist!


✅ Overview

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.


🛠 Tech Stack

  • HTML5 – Structure
  • CSS3 – Styling
  • JavaScript (Vanilla) – Logic and Interactivity

⚡ Features

✔ Standard calculator operations (+, −, ×, ÷)
✔ Simple and responsive UI
Faulty Mode: Random error injection (10% probability)
✔ Fun and unpredictable results!

▶️ Live Demo

https://ashu20122005.github.io/Faulty-Calculator/


📂 How to Run

  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages