Computer Science, asked by yaswanthkummari123, 22 days ago

John has a mathematical expression to solve with the help of a compiler. Now he has
to train the compiler in such a way that it solves the expression by following the rules
of mathematics.
Consider the example of the given expression: (( 2 + 3 ) * ( 5 / ( 3 + 6 ) ) )
Now for solving the above expression, one has to follow the BODMAS rule i.e. (bracket,
division, multiply, add, sub).
How will he design the compiler for this purpose?​

Answers

Answered by purbipriyadarshini
0

Answer:

Now he has to train the compiler in such a way that it solves the expression by following the rules. of mathematics. ... Now for solving the above expression, one has to follow the BODMAS rule i.e. (bracket, division, multiply, add, sub).

Similar questions