English, 16.10.2020 14:01 colbygreen6189
Pig Latin is childish encoding of English that adheres to the following rules:
1. The vowels are 'a', 'e', 'i', 'o', 'u', as well as any 'y' that is not the first letter of a word. All other letters are consonants. For example, 'yearly' has three vowels ('e', 'a', and the last 'y') and three consonants (the first 'y', 'r', and 'l').
2. If the English word begins with a vowel, append 'hay' to the end of the word to get the Pig Latin equivalent. For example, 'ask' becomes 'askhay, 'use' becomes 'usehay'.
3. If the English word starts with 'q', assume it is followed by 'u'; move 'qu' to the end of the word, and append 'ay'. Hence 'quiet' becomes 'ietquay', 'quay' becomes 'ayquay'.
4. If the English word begins with a consonant, move all the consonants up to the first vowel (if any) to the end and add 'ay'. For example, 'tomato' becomes 'omatotay', 'school' becomes 'oolschay', 'you' becomes 'ouyay', and 'h' becomes 'hay'.
Required:
Your goal is to write a function pigify that take a single English word (e. g. a string with only letters and no spaces), and converts it into Pig Latin.
Answers: 1
English, 21.06.2019 15:30
Read the passage: canines may not be the deepest thinkers in the world. but perhaps that's for the best. the life of a dog—sitting alone all day, waiting for everyone to come home—can be pretty boring. super-smart animals would probably get totally stressed out, says university of pennsylvania researcher james serpell. look at it this way: if dogs were any smarter, they probably wouldn't choose to hang around with us. which best describes the tone of the passage?
Answers: 1
English, 21.06.2019 23:40
What does it meam to write about something that went well today and reflect on its causes
Answers: 1
English, 22.06.2019 01:00
Which verb or verb phrase signals an inappropriate shift in mood. a) will you let b) should first change c) must attend d) will be served
Answers: 1
English, 22.06.2019 02:30
What is the best definition of the underlined word as it is used in the sentence? a statement of wit or amusement an expression of disapproval or condemnation a sentiment of indifference or apathy an exclamation of profound admiration or esteem
Answers: 1
Pig Latin is childish encoding of English that adheres to the following rules:
1. The vowels are 'a...
Computers and Technology, 28.01.2021 07:00
French, 28.01.2021 07:00
Arts, 28.01.2021 07:00
English, 28.01.2021 07:00
Mathematics, 28.01.2021 07:00
History, 28.01.2021 07:00
Mathematics, 28.01.2021 07:00
Mathematics, 28.01.2021 07:00
Health, 28.01.2021 07:00