You build the index by reading through the database account by account, inserting successive (account ID, record number) pairs into the tree as you progress through the file. Given an account ID, retrieval of the corresponding account record is a two-step process. First, you retrieve the data item from the index tree that has the specified account ID. Then, using the record number stored in the index data item, you read the corresponding account record from the database file. The result is an efficient retrieval process that is based on account ID. * Create a program that builds an index tree for the accounts database( Accountants database shown below should be saved in the file accounts.dat). Once the index is built, your program should • Output the account IDs in ascending order • Read an account ID from the keyboard and output the corresponding account record Record #      Account ID         First name          Last name          Balance 0                      6274               James                  Johnson             415.56 1                      2843               Marcus                Wilson               9217.23 2                      4892               Maureen              Albright            51462.56 3                      8337                Debra                  Douglas            27.26   4                      9523                Bruce                   Gold                 719.32 5                      3165                John                    Carlson              1496.24 6                      1892                Mary                     Smith                918.26 7                      3924               Simon                    Becker                 386.85 8                       6023              John                         Edgar                  9.65 9                       5290             George                    Truman            16110.68 10                     8529               Ellen                      Fairchild                86.77 11                     1144              Donald                   Williams                4114.26

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter13: Structures
Section13.5: Dynamic Data Structure Allocation
Problem 3E
icon
Related questions
Question
100%

using c++ plz ...............

You build the index by reading through the database account by account, inserting successive (account ID, record number) pairs into the tree as you progress through the file.

Given an account ID, retrieval of the corresponding account record is a two-step process. First, you retrieve the data item from the index tree that has the specified account ID. Then, using the record number stored in the index data item, you read the corresponding account record from the database file. The result is an efficient retrieval process that is based on account ID.

* Create a program that builds an index tree for the accounts database( Accountants database shown below should be saved in the file accounts.dat). Once the index is built, your program should

• Output the account IDs in ascending order

• Read an account ID from the keyboard and output the corresponding account record

Record #      Account ID         First name          Last name          Balance

0                      6274               James                  Johnson             415.56

1                      2843               Marcus                Wilson               9217.23

2                      4892               Maureen              Albright            51462.56

3                      8337                Debra                  Douglas            27.26
 
4                      9523                Bruce                   Gold                 719.32

5                      3165                John                    Carlson              1496.24

6                      1892                Mary                     Smith                918.26

7                      3924               Simon                    Becker                 386.85

8                       6023              John                         Edgar                  9.65

9                       5290             George                    Truman            16110.68

10                     8529               Ellen                      Fairchild                86.77

11                     1144              Donald                   Williams                4114.26

"Untitled Notepad
File Edit Format View Help
* Create a program that builds an index tree for the accounts database( Accountants database shown below should
Once the index is built, your program should
be saved in the file accounts, tx).
• Output the account IDS in ascending order
• Read an account ID from the keyboard and output the corresponding account record
Record =
Account ID
First name
Last name
Balance
6274
James
Johnson
415.56
1.
2843
Marcus
Wilson
9217.23
12
4892
Maureen
Albright
51462.56
3.
8337
Debra
Douglas
27.26
4
9523
Bruce
Gold
719.32
3165
John
Carlson
1496.24
1892
Mary
Smith
918.26
17
3924
Simon
Becker
386.85
6023
John
Edgar
9.65
5290
George
Truman
16110.68
10
8529
Ellen
Fairchild
86.77
Donald
williams
4114.26
11
1144
In. Col t
100%
Windows
527 PM
A ENG
12/8/2020
P Type here to search
Transcribed Image Text:"Untitled Notepad File Edit Format View Help * Create a program that builds an index tree for the accounts database( Accountants database shown below should Once the index is built, your program should be saved in the file accounts, tx). • Output the account IDS in ascending order • Read an account ID from the keyboard and output the corresponding account record Record = Account ID First name Last name Balance 6274 James Johnson 415.56 1. 2843 Marcus Wilson 9217.23 12 4892 Maureen Albright 51462.56 3. 8337 Debra Douglas 27.26 4 9523 Bruce Gold 719.32 3165 John Carlson 1496.24 1892 Mary Smith 918.26 17 3924 Simon Becker 386.85 6023 John Edgar 9.65 5290 George Truman 16110.68 10 8529 Ellen Fairchild 86.77 Donald williams 4114.26 11 1144 In. Col t 100% Windows 527 PM A ENG 12/8/2020 P Type here to search
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Parallel and Distributed Storage
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning