Answered step by step
Verified Expert Solution
Link Copied!

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 ("a","e","i","o","u") 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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is human nature?

Answered: 1 week ago