谁有MST的教程啊~~~好学吗?中专生

来源:百度知道 编辑:UC知道 时间:2024/05/06 03:12:04
我想学修电脑的主板~~~ 有人知道的可以给我留言啊~~
非常感谢的~~~!!!

Problem to solve:
Write a stack-based Calculator program in Java to support the following operators for integer and floating point data: addition, multiplication, division, subtraction; modulo and square-root. Also implement a print operator that prints out the entire stack and a pop operator that discards the top element on the stack. Your program should be in pure Java, and can use any of the standard Java Development Kit class library elements. Your operand stack should support mixed mode arithmetic and should promote integers to floating point numbers where appropriate. Implement appropriate exception handling to cope with malformed input from the user.

Specification:
Your program should accept textual input like:

144.0 sqrt
12.0
10 20 add
30
2 3 4 add mult
14
print
12
30
14
pop
pop
2.0
mult
24.0

Where the bolded lines are representative of your pro