logo CodeStepByStep logo

PigLatin2

Language/Type: C# file input
Author: Nick Troccoli (on 2017/07/08)

Write a method named PigLatin2 that is a modified version of the preceding pigLatin problem. In this modified version, if the word starts with constants, move all constants up to the first vowel (not just the first consonant) to the end, and append "ay". For example, the word "scram" would become "amscray".

Method: Write a C# method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.