Rational number expression evaluator, Computer Engineering

Assignment Help:

Develop a RPN rational number expression evaluator (REEval).

The learning objectives are:

  • improved procedural programming skills
  • improved confidence in designing and implementing applications involving ADTs
  • experience implementing and using simple data structures (Stacks)
  • understanding of the Reverse Polish Notation (RPN)
  • further experience with incremental development

The REEval (Rational Expression Evaluator) C application supports evaluation of reverse polish notation (RPN) expressions containing fractions (rational numbers). It supports the four basic operations.  

The evaluator reads a line containing a reverse polish notation expression to be evaluated, and outputs the result.

- Operands are input as positive fractions, like 2/3.  

  When the denominator value is 1, operands are input as integers giving the numerator value, e.g. 4.

- Operators may be +, -, *, :, =, s, or q (s to output the stack, q to quit the program).


Related Discussions:- Rational number expression evaluator

Optimal number of disks , John Lindsay sells disks that have 25 software pa...

John Lindsay sells disks that have 25 software packages that show a variety of financial functions, including net present value, internal rate of return, and other financial progra

What is public key cryptography, What is Public Key Cryptography Publi...

What is Public Key Cryptography Public-key cryptography is a form of modern cryptography which permits users to communicate safely without lastly agreeing on a shared secret

Defined for one match code object, What is the max no of match code Id's th...

What is the max no of match code Id's that can be defined for one Match code object? A match code Id is a single character ID that can be a letter or a number.

What are event and its types, What are event and its types? An event is...

What are event and its types? An event is an occurrence at a point in time, like user depresses left button. Event happens instantaneously with regard to time scale. Type

Disadvantages of address translation, Disadvantages of Address translation:...

Disadvantages of Address translation: Disadvantages are following: A program that is too large to be held in a part needs some special design, that called overlay

Add references dialog box, What is the difference among "using System.Data;...

What is the difference among "using System.Data;" and directly adding the reference from "Add References Dialog Box"?  When you compile a program using command line, you add th

Fundamental types of flash memory, Q. Fundamental types of flash memory? ...

Q. Fundamental types of flash memory? Code Storage Flash which is made by Intel, AMD, Atmel. It stores programming algorithms and it is largely found in cell phones. Data

Explain rmtrack, Highlights of the RMTrack application: ? Web based ac...

Highlights of the RMTrack application: ? Web based access permits your users to access the database from anywhere. ? Available as a hosted solution or a download for local in

Explain about transmission media, Q. Explain about Transmission Media? ...

Q. Explain about Transmission Media? These, also known as physical channels, can be either bounded or unbounded. Bounded media, in which signals representing data are confined

Keys, why impotant keys

why impotant keys

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd