Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can anyone help me write this code in c++? I'm still really new in coding and struggle with word problems can you add comments as
can anyone help me write this code in c++? I'm still really new in coding and struggle with word problems can you add comments as well as to what is what and also why you coded it in that way?
please no shortcuts as i do not know any other way to code other than the very early stages in coding.
here is a sample the output
please please no short cuts i'm trying to get a good foundation of the basics.
Source File: /1337/14/1ab14.(CCPPcppc++cccxxcp) Input: Standard Input Output: Standard Output Value: 1 In the United States, a Social Security number (SSN) is a nine-digit number issued to U.S. citizens, permanent residents, and temporary (working) residents under section 205(c)(2) of the Social Security Act. The number is issued to an individual by the Social Security Administration, an independent agency of the United States government. The Social Security number is a nine-digit number in the format "AAA-GG-SSSS". The number is divided into three parts: - The area number, the first three digits, is assigned by the geographical region. - The middle two digits are the group number. They have no special geographic or data significance but merely serve to break the number into conveniently sized blocks for orderly issuance. - The last four digits are serial numbers. They represent a straight numerical sequence of digits from 0001-9999 within the group. Write a complete program that will read an unknown number of nine-digit numbers from the standard input. Let each of the input numbers represent a Social Security number. Input can terminate when the end-of-data marker is encountered. For each nine-digit number, print it and its formatted form as shown below. The output should be directed to the standard output. YourNameCS1337Lab14FormattedInput123456789001010001999999999475508642Formo123456789001010001999999999475508642Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started