I need to write a reverse polish notation calculator and do not have a clue how to start. The only thing I have is the header file. This thing is due tomorrow at 3pm and I am backed into a corner. If someone can help me or write this for me I will paypal you money, if you just want to give me a kick in the ass to get started I would really like that too!
Here is the assignment.
write a computer program that uses a stack of 10 (maximum), inputs both polar (angle in degrees) and recta ngular values, and provides their sum, difference, product or quotient. The input is to be a “string” variable in either
± 123.456, ± 123.456 rectangular format ( x-coordinate, y-coordinate format) or
± 123.456< ± 123.456 polar format (the angle in degrees follows the”<”). Note that these strings should have no blanks in them (“cin” can be used here). Also, the “ ± ” and decimal point are to be optional. Some input validation should be attempted. If a single character is entered, it should be a +, -, * or / symbol as the RPN operator following two vector operands. Up to 10 vectors can be stacked before an overflow occurs. After each vector entry, the 10 current memory stack values should be displayed. If an operator was entered, the 10 current memory stack values should also be displayed with the result of the operation just completed always at the bottom of the stack. Options to clear the stack and quit should be available to the user.