Write a program that reads lines from an input file called in.txt. Each line represents a sentence and thus terminates with a period. Convert every word in each sentence to pig-latin, the rules of which are described below. Save every pigified sentence, in reverse order, into the output file called out.txt. Sample Output [login to view URL] : Sunny day. Sweeping the clouds away. On my way to where the air is sweet. Can you tell me how to get. How to get to Sesame Street. [login to view URL] : owHay otay etgay otay esameSay eetStray. anCay ouyay elltay emay owhay otay etgay. Onway mylay ayway otay erewhay ethay iray isway eetsway. eepingSway ethay oudsclay awayway. unnySay ayday. To convert a string to Pig-Latin, use the following algorithm: 1. If the string begins with a vowel, add "way" to the string. For example, Pig-Latin for "apple" is "appleway". 2. Otherwise, find the first occurence of the vowel, move all the characters before the vowel to the end of the word, and add "ay". For example, Pig-Latin for "strong" is "ongstray" since the characters "str" occur before the first vowel. Assume the vowels are a,e,i,o,u. Pigify examples string : strength strength PIGIFIED is engthstray string : alpha alpha PIGIFIED is alphaway string : frzzl frzzl PIGIFIED is frzzlay
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Platform
C++ (Visual Studio) Unix
## Deadline information
This program need to be written in C++ only. (Begginers Level) Needs to run in Microsoft Visual and Unix. Thank you