Write a code in a c++/java for the automaton distributed in the class that accepts keywords(cat,bat,cab). Create an input file along with these words may be two or three copies of these words scattered in a paragraph and illustrate that your program does accept these words and provides an output to that effect. Now take a file that does not have these words and illustrate that your program gives an output that the input does not have any of these words.