Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This version of the made up language Pig Latin takes the first consonant of a word, moves it to the end of the word, and
This version of the made up language Pig Latin takes the first consonant of a word, moves it to the end of the word, and then adds an ay to the end of word. If a word begins with a vowel aeiou you just add "way" to the end of the word. Below are some examples of fruits in Pig Latin:Write a Pig Latin translator. Your output will always be in lower case, so you should convert the input to lower case before translating the word. We will have seperate tests for cases that begin with a vowel and a consonant. You will get partial credit if your program implements one of the cases and full credit if your program implements both. You should review string slicing before tackling this problem.Here is an example of how your program should prompt the user and print the result:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started