Question: CS 250 Program 04 Due: Monday, March 5th Main topics: Basic String Methods Boolean Expressions if & if - else Statements Loop Statements Program Specification:

 CS 250 Program 04 Due: Monday, March 5th Main topics: Basic String Methods Boolean Expressions if & if - else Statements Loop Statements

CS 250 Program 04 Due: Monday, March 5th Main topics: Basic String Methods Boolean Expressions if & if - else Statements Loop Statements Program Specification: Some of you maybe spoke in Pig Latin when you were younger, so let's try and bring that knowledge back by creating a program that takes a single word of input and then translates it to pig latin. If you are unfamiliar with pig latin, what it entails is finding the first instance of a vowel in a word, moving the entire block prior to that vowel to the end of the word, and finally finishing off the word with "ay". Examples bicycle - icyclebay hello -> ellohay world-> orldway they -> eythay Requirements 1.) The user must first decide whether or not they want to play, and that answer must be validated via a user-validation loop 2.) The word that is converted from Pig Latin MUST be obtained fro the user 3.) Your code must work for all single word inputs Sample run(s): Run Pig Latin Translator! Enter a word and I'1l translate it to Pig Latin! Wanna Play? [y]: huh Wanna Play? [y]: g Wanna Play? [y]: y Give me a word: hello The word in Pig Latin is: ellohay anksThay orfay ayingplay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!