Write a loop-based menu driven complete C++ application (that will run without errors or warnings!) that uses an input file to process the external file, "BankAccounts.txt". The application will continue to run until the loop termination condition is selected. Prior to entering the loop, the application must read all records from the file. Within the loop the application must display a menu that gives the user the option to call one of the “Display...” functions or exit the loop. After the loop, the application will output the total balance of all the accounts (i.e., total for all savings, checking and money market accounts).The external file BankAccounts.txt includes a record for each account and contains the following information (each field separated by colon) Customer ID First Name Last Name Street Address Check Account Balance Money Market Balance Saving Account Balance The application must read the file of records and store the information in an array of structures (maximum size of the array will be 100 entries). Therefore, the

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a loop-based menu driven complete C++ application (that will run without errors or warnings!) that uses an input file to process the external file, "BankAccounts.txt". The application will continue to run until the loop termination condition is selected. Prior to entering the loop, the application must read all records from the file. Within the loop the application must display a menu that gives the user the option to call one of the “Display...” functions or exit the loop. After the loop, the application will output the total balance of all the accounts (i.e., total for all savings, checking and money market accounts).The external file BankAccounts.txt includes a record for each account and contains the following information (each field separated by colon) Customer ID First Name Last Name Street Address Check Account Balance Money Market Balance Saving Account Balance The application must read the file of records and store the information in an array of structures (maximum size of the array will be 100 entries). Therefore, the application must be designed to support a file that contains a maximum of 100 accounts. The number of accounts must be specified as a constant declaration. This constant must be used in the code everywhere the size of the array is required. The application must have functions that perform the following. DisplayAccounts – displays all the account records, sorted by Customer ID. This is a void function with 2 formal parameters (i.e., array of structures & number of array elements) DisplaySavingsAccounts – displays all the account records with a savings account balance greater than 0, sorted by Customer ID. This is a void function with 2 formal parameters (i.e., array of structures & number of array elements) DisplayCheckingAccounts – displays all the account records with a checking account balance greater than 0, sorted by Customer ID. This is a void function with 2 formal parameters (i.e., array of structures & number of array elements) DisplayMoneyMktAccounts – displays all the account records with a money market account balance greater than 0, sorted by Customer ID. This is a void function with 2 formal parameters (i.e., array of structures & number of array elements) TotalBalanceAccounts – calculates the total of all account balances for all customer savings, checking and money market. The function declaration is below. double TotalBalanceAccounts (double arr[], int accts); Note: Initialize all member variables. 1. The application must read all records of the file by using the technique of testing for the end-of-file (i.e., cannot prompt user for the number of records in the file). In addition, the application must be designed to handle strings that contain spaces. 2. The “Display...” functions are only required to display the pertinent money values (e.g., “DisplaySavingsAccounts” does not display money market or checking amounts). 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Graphical User Interface
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education