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
The advantage of using a Database Management System The advantage of using a Database Management System for a data store is that databases have mechanisms for describing data,

What functions connect( ) and accept ( ) call in Socket interfacing? connect() system call: Clients use procedures connect to initiate connection with an exact server. The

Replacement policy: On a particular cache miss we require to evict a line to build room for the new line "In an A-way set associative cache, we have A option of which block

Properties: 1.  Monetary Value: Monetary value must be backed by either cash, bank - authorized credit cards or bank certified cashier's cheque. 2.  Interoperability: E-cash


TII stands for? Ans. TII stands for Table of incomplete instructions.

Q. Average data transfer rate in floppy? A floppy is about 0.64 mm thick and is available in diameters 5.25 inch and 3.5 inch. Data are arranged in form of tracks and sectors.

General Considerations for Research -artificial intelligence: If we can specify the initial state, the operators or a consumer and the goal check for a search problem, that al

The expansion of nested macro calls done by using of? Ans. LIFO rule is used for the expansion of nested macro calls.

What is the main function of an assembly It contains code that the common language runtime implements. Microsoft intermediate language (MSIL) code in a portable executable (PE