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 14:30
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Nathan wants to create multiple worksheet containing common formatting styles for his team members. which file extension him to save these worksheets? nathan to create multiple worksheets with common styles. he needs to save them with the extension.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
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
Chemistry, 23.04.2021 04:50
Questions on the website: 13722359