Skip to content

Quanta1910/CodeAlpha_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Calculator Web App

๐Ÿ‘‰ Live Demo: https://quanta1910.github.io/CodeAlpha_Calculator/

A simple and responsive calculator built using HTML, CSS, and JavaScript. This project performs basic arithmetic operations with a clean and user-friendly interface.


๐Ÿš€ Features

  • Basic operations: Addition (+), Subtraction (-), Multiplication (*), Division (/)
  • Clear button (C) to reset input
  • Decimal support
  • Responsive layout using CSS Grid
  • Error handling for invalid expressions

๐Ÿ› ๏ธ Tech Stack

  • HTML5
  • CSS3 (Grid Layout)
  • JavaScript (DOM Manipulation)

๐Ÿ“‚ Project Overview

This is a front-end based calculator that:

  • Takes user input through buttons
  • Displays input and output in a screen area
  • Evaluates expressions dynamically using JavaScript

โš™๏ธ How It Works

  1. User clicks on buttons to enter numbers/operators
  2. Input gets displayed on the screen
  3. On clicking =, the expression is evaluated
  4. If expression is invalid โ†’ shows "Error"
  5. C button clears the screen

๐Ÿ“Œ Future Improvements

  • Keyboard input support
  • Scientific calculator features
  • Better UI animations
  • Replace eval() with safer logic

๐Ÿ‘จโ€๐Ÿ’ป Author

Dhruv Gupta


โญ Show Your Support

If you like this project, give it a โญ on GitHub!

About

A simple calculator with basic operations like addition, subtraction, multiplication, and division.

Topics

Resources

Stars

Watchers

Forks

Contributors