Fundamentals of Computer Science II (CSC-152 98S)


Assignment Six: Reverse Polish Notation

I am highly unlikely to grant extensions on this assignment!

Summary: In this assignment, you will implement a simple RPN calculator. Like dc, your calculator should handle arbitrary precision (or nearly arbitrary precision) numbers.

Collaboration: Each student should turn in his or her own copy of the assignment. You may discuss your design with any size group. You may also work with each other on general debugging issues.

A Desktop Calculator

Implement a simple arbitrary-precision reverse-polish-notation desktop calculator that supports the following operations:

You will most likely want to use the java.math.BigDecimal class to support your work. Note that it does not include an exponentiation function, so you will need to supply your own. You are expected to supply an efficient implementation.


Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.

Source text last modified Fri Apr 10 07:56:04 1998.

This page generated on Tue Jan 12 11:44:36 1999 by SiteWeaver.

Contact our webmaster at rebelsky@math.grin.edu