Question: Develop a C++ program to simulate a bank operation. Your program prompts the user for the file name, then opens it, and reads the entire

Develop a C++ program to simulate a bank operation. Your program prompts the user for the file name, then opens it, and reads the entire file and store the data. The program will be controlled by a menu. Make the arrays size 50, and make sure it does not overflow. Implement the following menu: 'A' -- Add new customer to the current bank. 'R' -- Remove customer from the current bank. 'P' -- Print all customers in the current bank to the monitor. 'W' -- Make a withdraw. 'D' -- Make a deposit. 'S' -- Save current bank information to a file. T -- Sort list. V -- Print a customers details in a page format to the monitor. 'X' -- Exit the program. Comments: For A : Add a customer to the bank, do NOT duplicate customers. Prompt user for customer data. For R : Remove a customer from the bank. Prompt user for last name. For P : Print all customers name and balance in the bank to the monitor in a tabular format. (See sample below) For S : Prompt the user for the file name. Write the Bank data to the file in a tabular format. For V,W and D: Prompt the user for the customer name. If name not found, print error message and go back to the menu. For X : Make sure to save the Bank to the disk in the original input file format. Print an ending message to the monitor. Then halt the program. For T Sort Customers. This will display a sub-menu: N Sort on Last names. B Sort on Balance. And allow user to choose what kind of sort is needed, then display the tabular list by calling the print function. For V: Prompt user for a name and then locate the customer on the list and print all the information to the monitor. Requirements: 1) Must use arrays of structures to store customers data. 2) Program must be modular (Use as many functions as possible). 3) Prompt user for all file names. 4) Verify files opened and have data in them. 5) Verify all inputted data from user (where possible) 6) Make sure to include documentation (ID block and Algorithm) 7) No global variables are allowed, make sure to pass all necessary data to functions. The data file contains the name of the bank on the first line followed by a list of customers data. File format: Bank Name Customer Name (Last, First) Customer Street Address City State Balance File Sample: First Bank of ECC Smith, Henry 456 Torrance Blvd. Torrance CA 3400.80 Holiday, John 675 Third St. Los Angeles CA 5678.50 Wilson, Nancy 7896 Crenshaw Blvd. Long Beach CA 4570.75 Output sample: Table format for the file: First Bank of ECC Report Name Address City State Balance ------------------------------------------------------------------------------------------------- Smith, Henry 456 Torrance Blvd. Torrance CA $3400.80 Holiday, John 675 Third St. Los Angeles CA $5678.50 Wilson, Nancy 7896 Crenshaw Blvd. Long Beach CA $4570.75 -------------------------------------------------------------------------------------------------- Total Assets $13650.05 Page format to the monitor: Name : Smith, Henry Address : 456 Torrance Blvd. City : Torrance State : CA Balance :$3400.80 Table format to the monitor: First Bank of ECC Report Name Balance -------------------------------- Smith, Henry $3400.80 Holiday, John $5678.50 Wilson, Nancy $4570.75 ---------------------------------- Total Assets $13650.05 Extra Credit: 1) Add a search function that is not case sensitive. (John is john)(10 Pts.) a. Make the search partial search, so if part of the name is given locate all names that contain the substring and allow user to choose the one they want. (10 more points) 2) Develop a structure to represent a Bank (Below is a sample form of the structure, but you may make it any way you like.): (30 Pts.) Name (Bank name) List of accounts (Array of Customer type, assume size 50) Total Assets (Assets of the bank is total of all the deposits) Number of customers + all the necessary utility functions (read, print, process,) 3) Add any features that may improve the program. (Email me first to make sure it is worth extra credit)

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!