I need some help, not sure what to do? Advice? Im not asking anyone to do this, I just wanted help on how to start it, that is all!
Thanks
Write a program which converts a person’s name to Pig Latin. Both the first and last name should be read from the user and stored in separate string variables. You will also need another pair of strings to hold the name in Pig Latin. The conversion must take place in a separate function, which will be called twice (once for the first name and once for the last name). To convert a name to Pig Latin, use the following algorithm:
Convert the first letter to lower case.
If the first letter in the word is a vowel, add "way" to the end.
Otherwise, find the first letter (left to right) in the word that is a vowel.
Move every consonant before (to the left of) of the vowel to the end of the name.
Add "ay" to the end.
Then, convert the new first letter of the name back to an uppercase letter.
For example, “Isaac Newton” is “Isaacway Ewtonnay” in Pig Latin. The conversion function should take one argument, the original word, and return the word converted to Pig Latin. Each of these is a string, so you will need to spend some time reading up on how to work with and manipulate strings. Here is a good starting point:
http://cplusplus.com/reference/string/string/
In particular, look into the string concatenation operator and the substr() function. You will also need to write a function to determine if a character is a vowel or not. Finally, you should look at the cctype library for the toupper() and tolower() functions which converts characters to uppercase and lowercase, respectively.
Your program should prompt the user to repeat the process as often as they want. That is, after the program displays the name in Pig Latin it should ask the user if they want to enter another name and repeat until the user is finished.