Question: Modify this code so that the uppercase letters and punctuation in English are carried over when the file is converted to Pig Latin. But the

Modify this code so that the uppercase letters and punctuation in English are carried over when the file is converted to Pig Latin. But the punctuation should be at the end of the Pig Latin words and the words with uppercase letters should be at the beginning of the Pig Latin word. For example, this English sentence: "Sally is nice, but Harry is not." should convert to Pig Latin like this: "Ally-say is-yay ice-yay, ut-bay Arry-hay is-yay ot-nay.Modify this code so that the uppercase letters and punctuation in Englishare carried over when the file is converted to Pig Latin. Butthe punctuation should be at the end of the Pig Latin words

1 // Pig Latin.cpp : Defines the entry point for the console application. 2 #include "stdafx.h" #include #include #include #include #include //library used for toupper using namespace std; bool isVowel(char ch); string rotate(string pStr); string pigLatinString (string pStr); 9 int main() string str; cout > str; cout > currentEnglish) { outputFile #include #include #include #include //library used for toupper using namespace std; bool isVowel(char ch); string rotate(string pStr); string pigLatinString (string pStr); 9 int main() string str; cout > str; cout > currentEnglish) { outputFile

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!