Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

here is a sample the output

image text in transcribed

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. YourNameCS1337Lab14FormattedInput123456789001010001999999999475508642Formo123456789001010001999999999475508642

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 11th International Symposium Sstd 2009 Aalborg Denmark July 8 10 2009 Proceedings Lncs 5644

Authors: Nikos Mamoulis ,Thomas Seidl ,Kristian Torp ,Ira Assent

2009th Edition

3642029817, 978-3642029813

More Books

Students also viewed these Databases questions

Question

3. Contrast relational contexts in organizations

Answered: 1 week ago

Question

2. Describe ways in which organizational culture is communicated

Answered: 1 week ago

Question

1. Describe and compare approaches to managing an organization

Answered: 1 week ago