Using C Programming Write Program Prompts User Input String Outputs String Pig Latin Form Q43780018
Using C programming, Write a program that prompts the user toinput a string and then outputs the string in the pig Latin form.The rules for converting a string into pig Latin form are asfollows: a. If the string begins with a vowel, add the string”-way” at the end of the string. For example, the pig Latin form ofthe string “eye” is “eye-way”. b. If the string does not begin witha vowel, first add “-” at the end of the string. Then rotate thestring one character at a time; that is, move the first characterof the string to the end of the string until the first character ofthe string becomes a vowel. Then add the string “ay” at the end.For example, the pig Latin form of the string “There” is”ere-Thay”. c. Strings such as “by” contain no vowels. In caseslike this, the letter y can be considered a vowel. So, for thisprogram the vowels are a, e, i, o, u, y, A, E, I, O, U, and Y.Therefore, the pig Latin form of “by” is “y-bay”. d. Strings suchas “1234” contain no vowels. The pig Latin form of the string”1234″ is “1234-way”. That is, the pig Latin form of a string thathas no vowels in it is the string followed by the string”-way”.
Expert Answer
Answer to Using C programming, Write a program that prompts the user to input a string and then outputs the string in the pig Lati…
OR