Question: PLEASE SOLVE USING PYTHON PROGRAMMING 6. Soundex System Soundex is a system that encodes a word into a letter followed by three numbers that roughly
PLEASE SOLVE USING PYTHON PROGRAMMING

6. Soundex System Soundex is a system that encodes a word into a letter followed by three numbers that roughly describe how the word sounds. Similar sounding words have the same four-character codes. For instance, the words Carrot and Caret are both coded as C123. A slight variation of the Soundex coding algorithm is as follows: 1. Retain the first letter. 2. For the remaining letters, delete all occurrences of a, e, i, o, u, h, y, and w 3. Assign numbers to the other letters that remain so that a b, f, p, and v become 1 b. c, g, j, k, q, s, x, and z become 2 c. d and t both become 3 d. 1 (i.e., el) becomes 4 e. m and n become5 f. r becomes 6 4. If two or more letters that have been replaced by the same number were next to each other in the original full word, keep only the first of them. 5. Keep only the first four characters of what you have left. If you have fewer than four, then add zeros on the end to make the string have length four Write a program that carries out the algorithm. See Fig. 3.84D Enter a word to code: Robert The coded word is R163
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
