Menu

[Solved]Python Hide Social Security Numbers Government Used Mapping Code Convert Numbers Letters U Q37046985

Python

To hide Social Security Numbers, the government used a mappingcode to convert the numbers to letters using the followingmapping

0 is mapped to A

1 is mapped to B

2 is mapped to C

3 is mapped to D

4 is mapped to E

5 is mapped to F

6 is mapped to G

7 is mapped to H

8 is mapped to I

9 is mapped to J

Write a program that asks the user to enter a 9 digits SocialSecurity Number in
the format XXX-XX-XXXX. The program should display the SSN
with any alphabetic characters according to the mapping givenabove

For example: 123-45-0679 should display BCD-EF-AGHI

Your solution should define a function replace(num) which takesa number and return the equivalent Alpha Character that correspondto that number for the mapping chart given above.

Your main program should loop on all the numbers of the input SSNand replace each with the corresponding character then print thecoded string

Expert Answer


Answer to Python To hide Social Security Numbers, the government used a mapping code to convert the numbers to letters using the f… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *