Question
python

The Soundex Code code for surnames. It was code. All Al Soundex is a system that designed to produce one code for natha may b

Hi I have a project due on this Friday and I really can’t seem to figure this code out. If anyone could write this for me it’d be very appreciated. Thank you!
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Python program

Please find below the program screenshots in sequence:

搟unction : generates°undexCode 3 #--> The function generates soundexcode for data 4 #by checking the consonant codes from dic34 #F unction : getCode 35 #--> get code for currentcharacter by consulting 36 #dictData dictionary 37 #will be called by gen56 #program starts here 58 0 59 #the code for the consonants are tken into a dictionary 62 #user input for surname is capture

OUTPUT

Run1

Enter surname:Fischer
Soundex code is: F260


Run2

Enter surname:Partridge
Soundex code is: P636


Run3

Enter surname:Lee
Soundex code is: L000

Add a comment
Know the answer?
Add Answer to:
python Hi I have a project due on this Friday and I really can’t seem to figure this code out. If anyone could writ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT