Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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