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
Describe the final keyword ? The final keyword is used in various different contexts as a modifier meaning in which what it modifies cannot be changed in a few sense. final c

With publish or subscribe message passing the sending application or client establishes a named topic in the JMS broker or server and publishes messages to this queue. The receivin

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

Differentiate between SMTP and POP3 server? SMTP (Simple Mail Transfer Protocol) is a protocol used to send and receive eMail messages over a TCP/IP network. While POP3 (Post

Create a program Using Constructors? The further program uses the constructor to initialize a car rather than setting the areas directly. class CarTest7 { public static voi

The hashCode() and equals() methods have to be very important, when objects implementing these two functions are added to collections. If not implemented or implemented incorre

Iterate through list of Fish. For each fish that isAlive, do the following: * * 1. If this fishIsSurroundedByRocks, DO NOTHING, and move on to the next fish. * (This f

Question: (a) Discuss the Java approach to event processing by explaining how event handling works in Java. Use an example to support your answer. (b) Explain what is a ‘

ActionServlet performs the role of Controller: ? Process user requests ? Verify what the user is trying to achieve according to the request ? Pull data from the model (if

The SudCell Class A single cell in a Sudoku must clearly represent a number from 1 to 9 .  But in a solver context, we need much more.  It isn't enough to say "this c