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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:00, Cocco
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
image
Computers and Technology, 22.06.2019 12:30, zaratayyibah
Which of the choices sean are not true when considering virus behavior
Answers: 1
image
Computers and Technology, 22.06.2019 15:00, yeet74
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
image
Computers and Technology, 23.06.2019 09:30, Cocco
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
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 in other subjects:

Konu
Mathematics, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01
Konu
English, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01
Konu
English, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01
Konu
Business, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01
Konu
Mathematics, 11.09.2020 22:01