Question: USE C PROGRAMMING LANGUAGE. You will need to write a program that reads an input string representing a sentence, and convert it into pig latin.
USE C PROGRAMMING LANGUAGE.

You will need to write a program that reads an input string representing a sentence, and convert it into pig latin. We'll be using two simple rules of pig latin: 1.If the word begins with a consonant then take all the letters up until the first vowel and put them at the end and then add "ay" at the end. 2. If the word begins with a vowel then simply add "yay" to the end. For this problem vowels are defined as: a, e, i, o, and u. There will only be characters in your input (no numbers or punctuation) Input-Output format: This program takes a string of space-separated words and should output the same space-separated words translated into pig latin. Example 1: $./sixth Hello and welcome to computer architecture elloHay andyay elcomeway otay omputercay architectureyay Example 2: $./sixth a program ayay ogrampray
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
