Using Code::Blocks (or an IDE of your choice), code thefollowing program in C++:
The program should read an input file of sentences and convertseach word to “Pig Latin.” To convert a word to Pig Latin, youshould remove the first letter and place that letter at the end ofthe word. Then you append the string “ay” to the word.
English: I SLEPT MOST OF THE NIGHT
Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAY
Example Input File:
I SLEPT MOST OF THE NIGHTTHE CAT IN THE HAT IS BACKEVERYONE LOVES PROGRAMMINGMY BEST DAYS ARE AHEAD OF MEI REALLY LIKE PIG LATINI CAME, I SAW, I CONQUEREDTHEY HEARD FIRSTHAND ACCOUNTS OF THE INCA EMPIREJUMP-=SPORTS ARE THE MOST WATCHED PROGRAMS ON T.V.WHAT’S THE DEAL WITH AIRLINE PEANUTS?
Answer to Using Code::Blocks (or an IDE of your choice), code the following program in C++: The program should read an input file …