subject

You must follow the UML below as the basis to create a calculator using Java OOP.
The requirement of the calculator
1. Accept input from
a) Standard input (loop for waiting next input after printing the computation result)
b) Text file (file name: input. txt with multiple lines of arithmetic expression)
2. The input string is an arithmetic expression including parentheses () and only has one line
a) The operator and operand may not have a space character as the separator
b) For example, (10.1+200 -4.5x5.5)/(2-3x5)
c) If the input string has syntax error, terminate the program and tell what is wrong.
3. The operand can be an integer or a floating-point value and also negative number.
4. The operators include +, ,x,/ and ! (factorial)
5. If the output is not an integer, round to 4 decimal places.
a) if using command line or Eclipse console
i. Input: (-20-10.1+200 -4.5x5.5)/(2-3 x5)
ii. Output: = -11.1654
b) if using a text file (input. txt) as input, you should create an output file (output. txt)
i. Input: (-20-10.1+200 -4.5x 5.5)/(2-3x5)
ii. In output file: Input: (-20-10.1+200 -4.5x 5.5)/(2-3 x5)= -11.1654
iii. There are more than 1 input arithmetic expression in the file.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
List the five on-board vehicle subsystems
Answers: 1
question
Computers and Technology, 23.06.2019 17:20
What is the best assassins creed game?
Answers: 2
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
You know the right answer?
You must follow the UML below as the basis to create a calculator using Java OOP.
The require...
Questions
question
Spanish, 01.10.2019 10:30
Questions on the website: 13722363