Question: 0 Write a program in C++ to implement the following DFA: 90 1 93 0 0 0 91 92 . The user can enter

0 Write a program in C++ to implement the following DFA: 90 1 93 0 0 0 91 92 . The user can enter a binary string, and the program should output either "ACCEPT" or "REJECT", based on whether the input string is accepted or rejected by this DFA. . If the user inputs "X", the program should terminate. Otherwise, the program should output the result (either "ACCEPT" or "REJECT") and allow the user to enter new input. . There should be a new line after each output. Sample Input: Sample Output: ACCEPT REJECT ACCEPT ACCEPT REJECT REJECT ACCEPT ACCEPT 0 00 01 11 10000 011011 1001 0111001 X
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Solved Answer Finally we can compile our whole code snippets ... View full answer
Get step-by-step solutions from verified subject matter experts
