This is a version with input of an exercise write a program


Question: (This is a version with input of an exercise) Write a program that inputs two string variables, first and last, which the user should enter with his or her name. First, convert both strings 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. Use only the pig latin rule of moving the first letter to the end of the word and adding "ay." Output the pig latin name to the screen. Use the substring and topper Case methods to construct the new name. For example, if the user inputs "Walt" for the first name and "Savitch" for the last name, then the program should create a new string with the text "Altway Avitchsay" and print it.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: This is a version with input of an exercise write a program
Reference No:- TGS02404244

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)