I need to write a program in C# that facilitates the input of logical expression.
There is an operator set which includes >, <, >=, <=, =, !=
There are AND, OR and parenthesis.
There is going to be a menu that user can select operators and input the values to compare so that the output will be something like:
(A > 5) OR (B = 10 AND C != 50)
How would you suggest to do it in a way that user always has to input valid values. Do you know any articles about it?
It sounds like what you are trying to do is build an application that will allow users to build Expression Trees (within some constraints).
Here is a really good article by Charlie Calvert describing what expression trees are, how you might use them and how to build them.
I hope this gets you going in the right direction.