Create a graphical reverse polish notation calculator, JAVA Programming

In this assignment you will create a graphical reverse polish notation calculator using a stack data structure.  A reverse polish notation calculator allows you to perform chain calculations by using, a postfix operator.  The assumption is that the operator serves as the delimiter and specifies the order of operations regardless of precedence.  For example, 5 5+4*10/ would 5 and 5 together, multiply the result by 4 and divide that by 10 which should return 4 as a result.  Please note that you must find some way of delimiting the first operand.  You note I used a blank space; however, this is not the only possibility.  Please use the following operators in your program:

+ Addition

-  Subtraction

*multiplication

/ Division

^ Exponentiation

% modulus division

# Square root

& percentage

You must also make also sure that each operator is preceded by two operands and the operators are correct.  The only exception to this is the square root operator.  If this is not the case, please pop up an error message. To complete this assignment successfully, please, it must all graphical.   I will accept codes only on Java 6 or Java 7 and use Stack.

Posted Date: 3/2/2013 2:09:28 AM | Location : United States







Related Discussions:- Create a graphical reverse polish notation calculator, Assignment Help, Ask Question on Create a graphical reverse polish notation calculator, Get Answer, Expert's Help, Create a graphical reverse polish notation calculator Discussions

Write discussion on Create a graphical reverse polish notation calculator
Your posts are moderated
Related Questions
Who Can an Applet Talk To? By default an applet can just open network connections to the system from that the applet was downloaded. This system is known as the codebase. An ap

Write a program called Grid. The program starts by prompting (asking) the user for the name of an input text file. This file is guaranteed to be correct and has the following fo

Describe the Superclass in Inheritance ? In this example you start through defining a more common MotorVehicle class. public class MotorVehicle { private String licensePlat

How can you justify that a DBMS is better to use than Flat-file database? A DBMS takes care of the storage, retrieval, and management of large data sets on a Database. It give

var temp =14; var y = 2; temp document.write(temp);

GPS and GPRS fleet management system Project Description: I want to develop fleet management system Skills required: HTML, PHP, Java, Website Design

What is the difference between inner class and nested class? When a class is explained within a scope od another class, then it becomes inner class. If the access modifier o

As registered nurses, we often wonder "am I responsible for the L.P.N's and the C.N.A. assigned on my floor.  Will I be blamed if someone makes an error or if someone gets hurt?  N

school management system

How are this () and super() used with constructors? this() Constructors: is used to pointing current class instance. Can be used with methods or variables. Used to call