Question: Create a program that reads a file name.txt into a C++ program. Each line in the text file should be read into the program as

 Create a program that reads a file name.txt into a C++
program. Each line in the text file should be read into the
program as values to a node. Each node should possess the following
values (name (string), area_code (int), phone_number (long int), and state (string). The

Create a program that reads a file name.txt into a C++ program. Each line in the text file should be read into the program as values to a node. Each node should possess the following values (name (string), area_code (int), phone_number (long int), and state (string). The names, area codes, and phone numbers should be read into the program line by line as separate node values. The area code should be used to determine the state and assign that actual state as the fourth value to each node, respectively. The nodes should be appended to the linkedlist. This program should possess the basic operations for linked list manipulation such as appending, inserting, deleting, and traversing. In addition, there should be a special operation function that displays the node's name and state values called displaystate). The textfile, name.txt, should possess the following values: name.txt George 404 5551113 Samantha 312 5557898 Alvin 213 5552347 Carly 212 5551111 Jake 443 5559898 Alice 202 5553001 Fred 202 5554747 Felicia 443 5553656 Hiedi 601 5558989 2

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!