Question

create a C++ program which reads in a Social Security number, a first name, a middle...

create a C++ program which reads in a Social Security number, a first name, a middle name or initial, and a last name from the file inData.dat. The name is written to file outData.dat in three different formats:


Format 1: First name, middle name, last name, and Social Security number


Format 2: Last name, first name, middle name, and Social Security number


Format 3: Last name, first name, middle initial, and Social Security number


Format 4: Last name, middle initial, last name


Note: The social security number and name in three parts on file “inData.dat”, each separated by one or more whitespacescharacters:

             222-33-3543                                Robert James Williams

Output: Write data in file “outData.dat” with proper format:

Robert James Williams                 222-33-3543

Williams, Robert, James               222-33-3543

Williams, Robert,  J.                     222-33-3543

Robert J. Williams

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
create a C++ program which reads in a Social Security number, a first name, a middle...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Create a file that contains 3 rows of data of the form: First Name Middle...

    1. Create a file that contains 3 rows of data of the form: First Name Middle Name Last Name Month Day Year Month Day Year GPA. This file represents student data consisting of first name, middle name, last name, registration month, registration day, registration year, birth month, birth day, birth year, current gpa. ...or you may download the data file inPut.txt. inPut.txt reads:​​​​​​​ Tsia Brian Smith 9 1 2013 2 27 1994 4.0 Harper Willis Smith 9 2 2013 9...

  • I need this written in the C format not C++ Name this program count.c-The program reads...

    I need this written in the C format not C++ Name this program count.c-The program reads an unknown number of words - strings that all 20 characters or less in length. It simply counts the number of words read. The end of input is signaled when the user enters control-d (end-of-file). Your program prints the number of words that the user entered. 4.

  • 6. Write a program that inputs the first name, middle initial (wirh period), and last name...

    6. Write a program that inputs the first name, middle initial (wirh period), and last name of a user and displays that person's n first name first, middle initial followed by a period, and last namelt hel will need the following variables: FirstName (a String) MiddleInitial (a String) LastName (a String) name with the

  • ASAP Please. Python Program Description Create an object-oriented program that allows you to enter data for...

    ASAP Please. Python Program Description Create an object-oriented program that allows you to enter data for employees. Specifications Create an abstract Employee class that provides private attributes for the first name, last name, email address, and social security number. This class should provide functions that set and return the employee’s first name, last name, email address, and social security number. This class has a function: get_net_income which returns 0. Create a Manager class that inherits the Employee class. This class...

  • Write a program that first reads in the name of an input file and then reads the file using the csv.reader() method.

     Write a program that first reads in the name of an input file and then reads the file using the csv.reader() method. The file contains a list of words separated by commas. Your program should output the words and their frequencies (the number of times each word appears in the file) without any duplicates. Ex: If the input is: inputl.csv and the contents of input1.csv are: hello, cat, man, hey, dog, boy, Hello, man, cat, woman, dog, Cat, hey, boy the output is: hello 1 cat 2 man...

  • Create a class “Person” which includes first name, last name, age, gender, salary, and haveKids (Boolean)...

    Create a class “Person” which includes first name, last name, age, gender, salary, and haveKids (Boolean) variables. You have to create constructors and properties for the class. Create a “MatchingDemo” class. In the main function, the program reads the number of people in the database from a “PersonInfo.txt” file and creates a dynamic array of the object. It also reads the peoples information from “PersonInfo.txt” file and saves them into the array. In C# Give the user the ability to...

  • java Practice Program 2: Create a project named Student that will cont ain two classes: Student...

    java Practice Program 2: Create a project named Student that will cont ain two classes: Student and StudentClient Student class Instance variables . Name Social security number Gpa Methods: Constructor that accepts all three instance variables Getters for all three instance variables .Setters for name and social security number .Setter for gpa should only set the value if the value is between 0 and 4.0. toString-Outputs the values of the instance variables in this format: name: Smith; SSN: 333-99-4444 GPA:...

  • In C++ please! Project 6-1: Email Creator Create a program that reads a file and creates...

    In C++ please! Project 6-1: Email Creator Create a program that reads a file and creates a series of emails Console Email Creator [email protected] [email protected] Тo: From: Subject: Deals! Hi James, We've got some great deals for you. Check our website! [email protected] [email protected] To From Subject: Deals! Hi Josephine, We've got some great deals for you. Check our website! [email protected] To From [email protected] Subject: Deals! Hi Art We've got some great deals for you. Check our website! Specifications Your instructor...

  • Create a program using C# the is a CHECKING account program. the program should display the...

    Create a program using C# the is a CHECKING account program. the program should display the customers name (Last name, Fitst name), the customers ADDRESS, the custeomers BIRTHDAY, the customer SOCIAL SECURITY NUMBER, customers PIN NUMBER.

  • A B C D E F G н Find First Name & Middle Initial Full Name...

    A B C D E F G н Find First Name & Middle Initial Full Name Last Name #NAME? #VALUE! 1 Name 2 GAINES THOMAS M. 3 Stone Jerome 4 Cannon Simone Z 5 Campbell Reece H. 6 Chase Stafford 7 Mcclain Jack 8 JONES BOBBYJ. Clean GAINES THOMAS M. Stone Jerome Cannon Simone Z Campbell Reece H. Chase Stafford Mcclain Jack JONES BOBBYJ. Proper Gaines Thomas M. Stone Jerome Cannon Simone Z Campbell Reece H. Chase Stafford Mcclain Jack...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT