Skip to content

Stellar-Cretaceus/Reborn-as-a-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CPE 112 Data Structure Final Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages