Write a Lex program that converts a file to “Pig latin.” Specifically, assume the file is a sequence of words (groups of letters) separated by whitespace. Every time you encounter a word: a. If the first letter is a consonant, move it to the end of the word and then add ay! If the first letter is a vowel, just add ay to the end of the word. b. Show transcribed image text Write
OR
OR