Question: Write in C++ Use the string class to solve the problem. Write a program that inputs two string variables, first and last, each of which
Write in C++
Use the string class to solve the problem. Write a program that inputs two string variables, first and last, each of which the user should enter with his or her name. First, convert both string to all lowercase. Your program should then create a new string that contains the full name in pig latin with the first letter capitalized for the first and last name. The rules to convert a word into pig latin are as follows. in C++ If the first letter is a consonant, move it to the end and add "ay" to the end. If the first letter is a vowel, add "way" to the end. For example, if the user inputs "Erin" for the first name and "Jones" for the last name, then the program should create a new string with the text "Erinway Onesjay" and print it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
