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, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
You know the right answer?
You must follow the UML below as the basis to create a calculator using Java OOP.
The require...
Questions