Question: I need this program in C + + . Please make sure it works properly. Thank you. Project Requirements: Input / Output Testing: It is

I need this program in C++. Please make sure it works properly. Thank you.
Project Requirements: Input/Output Testing:
It is recommended that you program reads in input from a file. Test your program with the follow ing 4 FAs
(M1, M2, M3, M4), Ten required test strings are given to test each FA for program correctness.
(1) An FA (M1) which recognizes the set of strings over {0,1} that ends with 0.
Required test strings: ,100,011,10abc1,0,1,0101011,11010,0001,1110
(2) An FA (M2) which recognizes the set of strings over {0,1} that do not have two consecutive 1's.
Required test strings: ,1,000,101,111,01001,1011011,1011000,01010,1010101110
(3) An FA (M3) which recognizes all identifiers that begin with a letter (both upper and lower) and followed by
any number of letters and digits.
Required test strings: , HelloWorld, abc, 1st_Ex, Java, the_num, code, X3Y7, X=90, X*Y
(4) An FA (M4) which recognizes the set of all decimal unsigned integer numbers without leading zeros except
the number 0(i.e. number 0 should be accepted while number 01 should be rejected.)
Required test strings: 7,-7,007,3.14,103,24930000,0,01,100,0101
 I need this program in C++. Please make sure it works

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!