Question: Here's an incorrect algorithm for translating a word into Pig Latin, like from pig to ig-pay: UPDATE: pig latin (light): take first letter off front,

Here's an incorrect algorithm for translating a word into Pig Latin, like from "pig" to "ig-pay": UPDATE: pig latin (light): take first letter off front, add first letter plus "ay" to end! 1. Append "-". 2. Append "ay" 3. Append first letter 4. Remove first letter How can you correct it / improve it? Think about these words as test cases: ayer, banana, probability, computers, eggs Write your new algorithm / pseudocode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
