Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, naomicervero
Which process would best represent the opposite of exhausting air from a system?
Answers: 2
image
Computers and Technology, 21.06.2019 22:50, savagesquid4807
Before you enter an intersection on a green light make sure
Answers: 2
image
Computers and Technology, 23.06.2019 02:30, woodpeckerdeejpe8wvh
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
image
Computers and Technology, 23.06.2019 03:30, patience233
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
Do you know the correct answer?
You must follow the UML below as the basis to create a calculator using Java OOP.
The require...

Questions in other subjects: