The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
University
| Teaching Since: | Apr 2017 |
| Last Sign in: | 438 Weeks Ago, 2 Days Ago |
| Questions Answered: | 9562 |
| Tutorials Posted: | 9559 |
bachelor in business administration
Polytechnic State University Sanluis
Jan-2006 - Nov-2010
CPA
Polytechnic State University
Jan-2012 - Nov-2016
Professor
Harvard Square Academy (HS2)
Mar-2012 - Present
This program must be written in c++, and full points go to the answer that works and has the best explanation for each line of code.
Write a program that changes an English sentence into "pig Latin". Use the algorithm: To form a pig-latin phrase from an English phrase, tokenize the phrase into words with the function strtok (or other means if you prefer). To translate each English word into a pig-latin word, place the first letter of the English word at the end of the English word and add the letters "ay". You may assume no punctuation marks and that all words have two or more letters.
-----------