Equation for logic circuit
hello!
On my project, about logic circuit. I have AND, OR, NOT gate for simulate with binary String 0 or 1. Now I want to create a component add on circuit with equation that has a step:
1. show dialog for input arithmatic equation(+, -, *, /).
2. input equation as (3A+B)-C=5Y+Z
3. program can check operator = then check on the left it for count vaiable is equal 3 then chek onthe right for count variable is equal 2 then
4. On the left can generate case for 3 variable input is 8 case:
000
001
010
011
100
101
110
111
all case can process on the left of equation.
5.On the right can generate case for 2 variable input is 4 case :
00
01
10
11
all case can process on the right of equation.
6.Program can process case from 1 to 8 on left to instead of variable for compute value number of the left of equation.
7. Program can process case from 1 to 4 on right to instead of variable for compute value number of the of equation.
8. Find the result that value number on the left equal on the left.
9. then generate the result on truth table of this equation.
7. if can instead of case then has a result that on the left equal on the right is 8 case (must to be equal count of input case)
8. Genate equation with a draw rectagle on schematic area for use it connect to AND,OR,NOT gate.
9. If all case on 7. is not equal 8 program must to error message "can't not ganerate.
pleas advise me for design this algorithm on java code
thank you.

