subject

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.5x 5.5)/(2 -3 x5) 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.5x 5.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 -3 x5) 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: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. –––. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. –––. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
You know the right answer?
1. Accept input from a) Standard input (loop for waiting next input after printing the computation r...
Questions
question
Mathematics, 04.02.2020 06:03
question
Mathematics, 04.02.2020 06:04
question
Mathematics, 04.02.2020 06:04
question
Mathematics, 04.02.2020 06:04
Questions on the website: 13722362