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,

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

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!