Git Product home page Git Product logo

infixtopostfix's Introduction

Infix to Postfix Calculator GUI Application

This Java application provides a graphical user interface (GUI) for performing mathematical calculations based on a given mathematical expression. The application uses a custom expression tokenizer and supports basic arithmetic operations.

Features

  • Input Interface: Allows users to input mathematical expressions through a text field.
  • Calculation Process Visualization: Displays the step-by-step calculation process, indicating the current operation being processed.
  • Operation Stack and Numeration Stack Visualization: Shows the content of the operation stack and numeration stack during the calculation.
  • Output Display: Presents the final result of the mathematical expression after calculation.

How to Use

  1. Enter a mathematical expression in the provided text field.
  2. Set the desired wait time (in milliseconds) for the visualization of each calculation step.
  3. Click the "Calculate" button to start the calculation process.
  4. View the step-by-step calculation process, operation stack, and numeration stack on the GUI.
  5. Once the calculation is complete, the final result will be displayed in the output section.

Code Structure

  • MyPanel Class: Main class representing the GUI panel, handling user input, initiating the calculation process, and updating the display.
  • Tokenizer Class: Responsible for tokenizing the input mathematical expression and providing utility methods for integer checking and stack operations.

Notes

  • The application is designed to visualize the calculation steps for educational purposes and may not cover all mathematical expressions.

infixtopostfix's People

Contributors

navidadelpour avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.