Question: Write a C + + program that inputs a Social Security Number ( SSN ) , with no dashes or spaces ( e . g

Write a C++ program that inputs a Social Security Number (SSN), with no dashes or
spaces (e.g.574343912). Input the number into a variable of type int.
The first three digits of a social security number provides information about the
location of the SSN holder (SSN-Check.org). For example, if the value is 574 then the
person was likely born in Alaska. If the value is between 531 and 539 then the person
was probably born in Washington. 540-544 is Oregon and 545-573 is California.
Extract the first three digits of the SSN into an integer. From these first three digits,
use an if-statement to output what state they were likely born in. If the three digits
doesn't fall into any of those ranges, output "Born in a state other than AK, CA, WA,
OR."

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!