Skip to content

ShashiShekharDixit/Calculator-in-TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Calculator Application

Welcome to the Calculator Application project! This simple yet efficient calculator, built using TypeScript, provides essential mathematical operations with an intuitive and user-friendly interface.


🌟 Features

  • Basic Operations: Perform addition, subtraction, multiplication, and division.
  • Clear Functionality: Reset the current operation and start fresh.
  • Error Handling: Manage division by zero and other invalid operations gracefully.
  • Responsive Interface: Designed for use on any screen size.

🔧 Tech Stack

  • TypeScript: For strict typing and reliability in building the calculator logic.
  • HTML5: For structuring the user interface.
  • CSS3: For responsive design and layout styling.
  • JavaScript: For additional interactivity.

🎨 Live Demo

Check out the live version of the Calculator Application here (replace with your hosted link).


🛠️ Installation and Setup

Prerequisites

Ensure you have the following installed:

Installation Steps

  1. Clone the repository:

    git clone https://github.com/ShashiShekharDixit/calculator-app.git
    cd calculator-app
  2. Install dependencies:

    npm install
  3. Compile the TypeScript files:

    npm run build
  4. Run the application: Open the index.html file in your browser or serve it using a live server.


💻 Usage

The calculator interface is straightforward to use:

  • Click or type in numbers and operations.
  • Hit the equals button = to get results.
  • Use the C button to clear the current input.

Operations:

  • Addition: +
  • Subtraction: -
  • Multiplication: ×
  • Division: ÷

📁 Project Structure


📦 Dependencies

  • TypeScript: For adding type safety to the calculator logic.
  • Live Server: Optional, for running the HTML in a local development environment.

🎯 Planned Features

  • Advanced Operations: Add support for square roots, powers, and percentages.
  • Scientific Mode: Expand the calculator for scientific calculations.
  • Themes: Add multiple themes for better customization.
  • Keyboard Support: Improve interaction by adding full keyboard support.

👨‍💻 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push the branch (git push origin feature-name).
  5. Open a pull request and describe your changes!

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.


📞 Contact

Feel free to reach out if you have any questions or suggestions!


Enjoy calculating! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published