Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.48 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.48 KB

Reborn as a Calculator!

A lightweight calculator built in C using Replit, designed to handle single-line mathematical expressions while supporting notation style conversions (Infix, Postfix, and Prefix).


📋 Project Overview

This project focuses on:

  • Converting notation styles: Infix, Postfix, and Prefix.
  • Performing calculations: Handles basic single-line mathematical expressions.
  • Customizable output: Option to display results with desired decimal precision.

🚀 Features

  • Notation Conversion: Seamlessly converts between Infix, Postfix, and Prefix notations.
  • Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
  • Customizable Output: Adjust the number of decimal points in the result.

🛠 Tools & Technologies

  • C Programming Language
  • Replit

🔧 Setup & Usage

  1. Clone the repository:
    git clone <repository_url>  
    cd reborn-as-a-calculator
  2. Open the project
    1. Open Project in Replit and press run on main.c (Recommended) or
    2. Download an executable file

📈 Features in Action

  • Input: 3 + 4 * 2 (Infix notation)
  • Conversion:
    • Postfix: 3 4 2 * +
    • Prefix: + 3 * 4 2
  • Calculation Result: 11.00 (2 decimal points).

✨ Acknowledgments

  • Replit for providing an accessible development environment.
  • Inspiration from classic calculator functionalities and notation handling.