Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can anyone help me code this in C++ programs needs to read an unknown number of 9 digits numbers from the standard input. Let each

can anyone help me code this in C++

programs needs to read an unknown number of 9 digits numbers from the standard input. Let each of the numbers from input represent a social security number. Input can terminate when the end-of-data marker is encountered.

pull each grouping of numbers using division and modulus

looking at figure 1 line 11 use for character "0" please use setw and setfill for the formatting

image text in transcribed

image text in transcribed

SourceFile:Input:Output:Value:/1337/14/1ab14.(CCPPcppc++cccxxcp)StandardInputStandardOutput1 In the United States, a Social Security number (SSN) is a nine-digit number issued to U.S. citizen: permanent residents, and temporary (working) residents under section 205(c)(2) of the Social Security Ac The number is issued to an individual by the Social Security Administration, an independent agency of th United States government. The Social Security number is a nine-digit number in the format "AAA-GG-SSSS". The number is divide 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 significanc 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 fror 0001-9999 within the group. Write a complete program that will read an unknown number of nine-digit numbers from the standar input. Let each of the input numbers represent a Social Security number. Input can terminate when th end-of-data marker is encountered. For each nine-digit number, print it and its formatted form as show below. The output should be directed to the standard output. Commands to compile, link, and run this assignment are shown in Figure 1. Figure 1. Commands to Compile, Link, \& Run Lab 14 (Part 1 of 2) Figure 1. Commands to Compile, Link, \& Run Lab 14 (Part 2 of 2)

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

plan how to achieve impact in practice from your research;

Answered: 1 week ago