Rational number expression evaluator, Computer Engineering

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).

Posted Date: 2/23/2013 1:00:34 AM | Location : United States







Related Discussions:- Rational number expression evaluator, Assignment Help, Ask Question on Rational number expression evaluator, Get Answer, Expert's Help, Rational number expression evaluator Discussions

Write discussion on Rational number expression evaluator
Your posts are moderated
Related Questions
Clear operation The clear operation compares words present in A and B and produces an all 0's result if two numbers are equal. This operation is achieved by the exclusive-OR mi

What are the three basic types of web documents? There are three fundamental types of web documents: Static, Dynamic and Active. STATIC A static web document resides i

Explain micro programmed control. Ans: A micro programmed control unit is made around storage till is called a control store where all the control signals are stored in a prog

What happens if a function module runs in an update task? The system performs the module processing asynchronously.  Instead of carrying out the call immediately, the system w

Set up the minunit test framework examples in your environment (i.e. build or compile the code). Once you can run the example, use the minunit test framework to create and run a bo

Nested Macro calls are expanded using the? Ans. By using the LIFO (Last in First out) Nested Macro calls are expanded.

Q. What is multi-threaded unix kernel? Multi-threaded UNIX kernel: We know threads are light-weight processors demanding minimal state information comprising the processor stat

Define the Edge-Triggered Flip-flops? An edge-triggered flip-flop changes states either at the negative edge (falling edge) or at the positive edge (rising edge) of the clock p

Q. What are common reason for error massages while copying file? While copying files with copy, DOS in encounters any error, it displays a suitable error massage. The common re

INTEL ARCHITECTURE - 64 ( IA-64) IA-64 (Intel Architecture-64) is a 64-bit processor architecture developed in cooperation by Intel and Hewlett-Packard, executed by processors s