Question: Code in C++, thanks. Question 3: Soundex System Soundex is a system that encodes a word into a letter followed by three digits that roughly

 Code in C++, thanks. Question 3: Soundex System Soundex is a

Code in C++, thanks.

Question 3: Soundex System Soundex is a system that encodes a word into a letter followed by three digits that roughly describe how the word sounds. That is, similar sounding words have similar 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: A. Retain the first letter. B. For the remaining letters, delete all occurrences of a, e, i, o, u, h, y, and w C. Replace the letters that remain with numbers so that A. b, f, p, and v become 1 B. c, g, j, k, q, s, x, and z become 2 C. b and t both become 3 D. t (that is el) becomes 4 E.m and n become 5 F.r becomes 6 D. If the result contains two adjacent identical digits, eliminate the second of them. E. 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

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!