Question: In C pls! Write a program that inputs a Social Security Number, with no dashes or spaces. You can input the number into a variable

In C pls!

Write a program that inputs a Social Security Number, with no dashes or spaces. You can input the number into a variable of type int.

The first three digits give you some information about the location of the SSN holder. Extract the first three digits of the SSN into an integer. There are several ways to do this, although I recommend a mathematical approach. From the first three digits, use an if-statement to output what state they were born in. If the three digits doesn't fall into the list, output "state not in list"

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!