Prompt the user for a social security number. Determine if the SSN is in the correct format.
correct input:
Standard Input
123-45-67890
Program Output
Enter your SSN in this format: XXX-XX-XXXX
Problem: You must type exactly 11 characters.
wrong input:
Standard Input
123-bb-6789
Program Output
Enter your SSN in this format: XXX-XX-XXXX
Problem: Only digits are allowed in a SSN
Standard Input
--123456789
Program Output
Enter your SSN in this format: XXX-XX-XXXX
Problem: The dashes are missing or are in the wrong spot
1.Put the input into a string.
2.Check the length of the string
3.Check the number of digits in the string.
4. Check the dash locations. Which will be located in element 4 and element 7 given the input is correct.