Problem:
DFA-based text filter.
Assume the language ? = {Ascii symbols including digits).
Question- Construct a DFA which will accept the string 011 ( a representation for the number 3), and reject 101 ( a representation for number 5) and also reject strings 01i and fred. (Let us call it Mod3 DFA).
Using the DFA, write a code in a high-level language C++ ( Visual Studio Professional 2010 C++),for this DFA.
Please show code with comments so I can follow what you are doing.