Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program that inputs an unknown number of records froma sequentialfile Use the following structure definition in your program Write a C++ program

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Write a c++ program that inputs an unknown number of records froma sequentialfile Use the following structure definition in your program Write a C++ program to inserts the records into a Binary Search Tree (BST) using the account number (4 digit positive integer) as the unique record key (duplicate records are not allowed). Then printthree separate reports in preorder, postorder and inorder (see report format below). Do not insert records into the binarytree ifthey have erroneous data in them, for instance, date errors( month, day, yea andr (records should not be created if the date specified is in advance of the current calendar date), type data errors, duplicate account numbers, balance (less than or equal to zero), accounttype, etc. Instead create an error report and write those records found to have errors to the error report file along with a message indicating the error) (see errorfile format below) After processing all of the accountrecords and completing the creation of the BST, traverse the completed BST and printthe "Account Report" inorder by account numberto a file (see formatbelow). Now that the BST has been created, open the transaction file (file format below) and process all of the transactions records on the transaction file. Compute bank statements for each account number on the transaction file (only), transaction records are presorted by account number (see format for bank statements below). Write all bank statements (2 per page) to one output file. After processing all of the transaction records, traverse the traverse the BST and print the "account Report" inorder by account numberto a file (with a different name). Write a c++ program that inputs an unknown number of records froma sequentialfile Use the following structure definition in your program Write a C++ program to inserts the records into a Binary Search Tree (BST) using the account number (4 digit positive integer) as the unique record key (duplicate records are not allowed). Then printthree separate reports in preorder, postorder and inorder (see report format below). Do not insert records into the binarytree ifthey have erroneous data in them, for instance, date errors( month, day, yea andr (records should not be created if the date specified is in advance of the current calendar date), type data errors, duplicate account numbers, balance (less than or equal to zero), accounttype, etc. Instead create an error report and write those records found to have errors to the error report file along with a message indicating the error) (see errorfile format below) After processing all of the accountrecords and completing the creation of the BST, traverse the completed BST and printthe "Account Report" inorder by account numberto a file (see formatbelow). Now that the BST has been created, open the transaction file (file format below) and process all of the transactions records on the transaction file. Compute bank statements for each account number on the transaction file (only), transaction records are presorted by account number (see format for bank statements below). Write all bank statements (2 per page) to one output file. After processing all of the transaction records, traverse the traverse the BST and print the "account Report" inorder by account numberto a file (with a different name)

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Question Can a self-employed person adopt a money purchase plan?

Answered: 1 week ago