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, 21.06.2019 19:30
Assignment directions the owner of a popular local coffee shop has approached you to design a network for his business. he would like to offer his customers wifi access to the internet, but also thinks it might be handy to network the kitchen and store room together with the office computer he already uses for ordering, scheduling, and payroll. he thinks that might save him time doing inventory control and ordering. your assignment is to create a set of questions for him that will precisely define the purpose of the network and any constraints and restrictions on its implementation. assignment guidelines create a list of at least ten questions to ask your customer. of those ten questions, at least one question must come from each of the following subject areas: purpose of the network network access and security issue network availability and fault tolerance issues future expansion issues vendor issues briefly explain in two or three sentences why you would ask each question and what you expect to learn from your customer’s response. submission requirements your questions should meet the criteria of a good survey question by being specific, unambiguous, and closed-ended. all questions, as well as your explanations, should be written in proper english using correct grammar, spelling, and punctuation. use complete sentences, and do not use slang, texting abbreviations, or shortcuts.
Answers: 3
question
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or         a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
You know the right answer?
1. Accept input from a) Standard input (loop for waiting next input after printing the computation r...
Questions
Questions on the website: 13722367