tokenize an algebraic expression and convert it from infix to prefix and postfix

In Progress

• read from a file a series of an infix algebraic expressions comprised of constant and variable operands (integers), operands (%, *, /, +, -) and parenthesis. Two slashes (//) represents the beginning of a comment that is not part of the expression

• For each line read:

1. Display the input on the console.

2. Store the expected result in a variable for later comparison. Display the comment.

3. Separate the algebraic expression from the string and then convert the expression to a postfix algebraic expression.

4. Display a list of constants in the expression.

5. Display a list of variables in the expression.

6. Query the user for a value to assign to each the variable (Ask only once for each variable regardless of the number of times it occurs in the expression).

7. Display the postfix expression.

8. Determine and display the numeric result of the expression, using integer math.

9. Determine if the computed answer and the expected result are the same and post an appropriate message.

Coding Standard: The program may use only the Java library Scanner, System, Vector, Arraylist, Linked List, Stack and Java standard file handling classes. The use of arrays is permitted. All input is from a file named “[url removed, login to view]” and output must be to the Java Console.

Extra explanations;

• It reads in each line of the input file and displays it.

• It correctly identifies and displays all constants used in the expression, including their sign. Note: The minus symbol can indicate either subtraction or a negative constant.

• it displays it the comment to the console.

• it displays a list of all the variables in the expression.

• it queries the user for a value for each variable

• it queries the user for a value for each variable (only once for each occurrence).

• Correctly converts the infix formula into postfix and displays the resulting expression.

• it substitutes the values specified for each variable and displays the new postfix result.

• it correctly resolves postfix and displays the result.

• it writes all output required from the console to a file.

Skills: Engineering, Java, Software Architecture, Software Testing

See more: infix prefix, tokenize infix, infix expression tokenize, infix postfix prefix convert program, postfix prefix java, convert infix prefix, convert postfix expression infix expression java, infix prefix java, vector vector string, vector string, vector library, string vector, string prefix, standard vector, standard library vector, prefix string, prefix of a string, named query, linked stack, linked it, library vector, java arraylist 1.5, java 1.4 arraylist, is in a prefix, integers and

Project ID: #4436281

Awarded to:

minhln

I used to work on these kind of problems 7 years ago.

$35 USD in 1 day
(0 Reviews)
0.0

11 freelancers are bidding on average $42 for this job

TopOfStack

HI i am interested

$100 USD in 5 days
(146 Reviews)
6.9
dobreiiita

Hi, I am Java expert and can surely help you here, Thanks

$35 USD in 1 day
(192 Reviews)
6.5
nani01029x

Let me help you.

$35 USD in 1 day
(44 Reviews)
5.0
dipakjadhav08

i have 4 years experience in java. i can help you.

$35 USD in 1 day
(8 Reviews)
3.0
topcoder9793

Hi I am a Java expert and I can help you in this project. Please let me know if you are interested. Thank you.

$50 USD in 5 days
(4 Reviews)
2.5
pabloz1974

I can do that with pleasure,

$35 USD in 3 days
(1 Review)
1.6
ofesenyuk

I am expert in the numerical calculations. I have executed the similar task in Java, so I can help you.

$35 USD in 3 days
(1 Review)
1.0
extreamsolutions

We can do it

$35 USD in 1 day
(0 Reviews)
0.0
UPCsoftware

We have big experience in Java. We can do it.

$30 USD in 2 days
(0 Reviews)
0.0
shivakumar90

i have done this before, i can start it immediately and deliver it in one day.

$34 USD in 1 day
(0 Reviews)
0.0