Giter Site home page Giter Site logo

arocca1 / prefixer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 104 KB

Evaluate a mathematical expression and convert it from infix notation to prefix notation. The expression should be specified in a file that is passed as an argument to the application. If there are no variables in the expression, then the expression is evaluated to return the result of the operations.

C++ 100.00%

prefixer's Introduction

UNIX

Running the prefixer
Change your current directory to the directory containing the prefixer output file.
The command "./prefixer" will run the output file.
The file infixExpression.txt was included, but any file containing an expression can be used, as per the requirements.
As per the requirements, using the "-r" flag will output a simplified version of the expression in the input file.

Note
If you don't want to type "./" before the prefixer command to run the prefixer, you can copy the output to your bin folder so that you can just execute the command "prefixer".
Use the following command:
sudo cp ~/prefixer /usr/bin
You will most likely be prompted for a password, so hopefully you have the correct privileges to perform this action.

Note for simplification of integers
If division of the number results in a number less than 1 (0 in integer division), it is not simplified.

prefixer's People

Contributors

arocca1 avatar

Stargazers

 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.