Question: C Programming/ C language Write a modular program that creates a linked list of client nodes that is in ascending order by the account numbers
C Programming/ C language
Write a modular program that creates a linked list of client nodes that is in ascending order by the account numbers of the clients and prints a table containing the data in the nodes by traversing the list. The program will read the data from a file named alphaClients.txt. The client records are stored in the file in the following format:
The account number for a client should be first.
The account number is followed by a space that separates it from the client name.
The name is followed by a newline character which separates it from the balance.
The balance is followed by a newline character.
This newline character separates this record from the next record.
The text file that you are reading is going to contain the following to further explain the format of the text file :
9412 Advent, Ltd. 245.31 1222 Adventure Travel 72.74 3910 Bank of America -88.83 1035 Bausch & Lomb 3252.65 6900 Capital One 718.72 1072 Chick-fil-A 0.00 1015 Goodacre 1000.84 2000 HEB 1039.20 2407 Hathaway, Inc. 55.41 4100 Hilton -41.17 8652 MKJ -845.65 5300 Nike 20.26 1086 Quik Trip 94.89 6100 REI 201.80 2405 Ranger 0.00 2300 Southwest Airlines 0.00 1096 Starbucks 3016.78 7900 T-Mobile -10.43 1078 Toyota North America -93.79
A samlpe of the program output is shown below :
Account Name Balance
1015 Goodacre 1000.84
1035 Bausch & Lomb 3252.65
1072 Chick-fil-A 0.00
1078 Toyota North America -93.79
1086 Quik Trip 94.89
1096 Starbucks 3016.78
1222 Adventure Travel 72.74
2000 HEB 1039.20
2300 Southwest Airlines 0.00
2405 Ranger 0.00
2407 Hathaway, Inc. 55.41
3910 Bank of America -88.83
4100 Hilton -41.17
5300 Nike 20.26
6100 REI 201.80
6900 Capital One 718.72
7900 T-Mobile -10.43
8652 MKJ -845.65
9412 Advent, Ltd. 245.31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
