this program is c for this project you are required to build a simple bankingapplica 4949005

This program is C++ For this project, you are required to build a simple bankingapplication in C++. Below is an example of menu to be provided by your application: ———————————————————————- WELCOME TO THE BANKING SYSTEM ———————————————————————- A.) Balance B.) Deposit C.) Withdrawal D.) Transfer E.) New Account F.) Change PIN Number G.) Quit ———————————————————————- Please select an operation: A Please provide the account number: 1000 Please provide the PIN number: 1111 The Balance in your account is: $2000.50 ———————————————————————- WELCOME TO THE BANKING SYSTEM ———————————————————————- A.) Balance B.) Deposit C.) Withdrawal D.) Transfer E.) New Account F.) Change PIN Number G.) Quit ———————————————————————- Please select an operation: A Please provide the account number: 9999 Please provide the PIN number: 34 Sorry! The account number you provided does not exist CIS 150 Fall 2018 2 ———————————————————————- WELCOME TO THE BANKING SYSTEM ———————————————————————- A.) Balance B.) Deposit C.) Withdrawal D.) Transfer E.) New Account F.) Change PIN Number G.) Quit ———————————————————————- Please select an operation: A Please provide the account number: 1000 Please provide the PIN number: 99 Sorry! Incorrect PIN ———————————————————————- WELCOME TO THE BANKING SYSTEM ———————————————————————- A.) Balance B.) Deposit C.) Withdrawal D.) Transfer E.) New Account F.) Change PIN Number G.) Quit ———————————————————————- Please select an operation: C Please provide the account number: 1000 Please provide the PIN number: 1111 Please provide the amount you would like to withdraw: 3000 Sorry! Insufficient fund CIS 150 Fall 2018 3 ———————————————————————- WELCOME TO THE BANKING SYSTEM ———————————————————————- A.) Balance B.) Deposit C.) Withdrawal D.) Transfer E.) New Account F.) Change PIN Number G.) Quit ———————————————————————- Please select an operation: D Please provide your account number: 1000 Please provide your PIN number: 1111 Please provide the destination account number: 1001 Please provide the amount you would like to transfer: 500 Transfer Successful! Reading Account Data from File: The first task performed by your program is to call a function(to be defined) that reads account data from a text file “bank.txt”. Below is an example of data in thefile: The account describe in the first line include an account number(1000), a PIN number (1111), first name (John), last name (Smith), and balance (2000.5). The function will then store the account data obtained from thefile in an array named mybank of type account, where account is a structure composed of the following:accountNumber (int), pin (int), first (string), last (string), balance (float). For simplicity, we assume thatthe bank will never contain more than 500 accounts. Note 1: There is no option in the menu for reading data from file.However, the function that performs that should be called once at the beginning of each program. Note 2: The file “bank.txt” should be closed once all account data isread. Options A-F in the menu should be performed on the array. CIS 150 Fall 2018 4 Balance (Option A in the menu) This option should be executed by calling a function to bedefined. The function asks users for the account number and PIN number. It looks for the account in the array bycalling another search function (to be defined). If the account exists and the PIN is correct, then thebalance is displayed. Otherwise (account inexistent or incorrect PIN), an appropriate error message isdisplayed. Deposit (Option B in the menu) This option should be executed by calling a function to bedefined. The function asks users for the account number, PIN number, and amount to deposit. It looks for theaccount in the array by calling another search function (to be defined). If the account exists and the PIN iscorrect, then the deposit operation is executed on the account in the array. Otherwise (account inexistent orincorrect PIN), an appropriate error message is displayed. Withdrawal (Option C in the menu) This option should be executed by calling a function to bedefined. The function asks users for the account number, PIN number, and amount to withdraw. It looks for theaccount in the array by calling another search function (to be defined). If the account does not exist or thePIN is incorrect, an appropriate error message is displayed. If both the account number and PIN are correct, thefunction performs the operation if there is enough funds in the account. Otherwise an appropriate errormessage is displayed. Transfer (Option D in the menu) This option should be executed by calling a function to bedefined. The function asks users for the account number, PIN number, the target account number, and amount totransfer. It looks for the source and destination accounts in the array by calling another searchfunction (to be defined). If any of the two accounts does not exist or the PIN of the source account is incorrect, anappropriate error message is displayed. If both account numbers and PIN are correct, the function performs theoperation if there is enough funds in the source account. Otherwise an appropriate error message isdisplayed. New Account (Option E in the menu) This option should be executed by calling a function to bedefined. The function asks the user for new account information, including account number, PIN, first name, lastname, and balance. The information is added to the array (to the first available element in the array). Thefunction needs to make sure the account number entered by the user does not already exist. Otherwise, anappropriate error message is displayed. CIS 150 Fall 2018 5 Change PIN Number (Option F in the menu) This option should be executed by calling a function to bedefined. The function asks users for the account number, PIN number, and new PIN number. It looks for the accountin the array by calling another search function (to be defined). If the account exists and the PIN iscorrect, then the PIN number is updated in the array. Otherwise (account inexistent or incorrect PIN), anappropriate error message is displayed. Quit (Option G in the menu) This option should be executed by calling a function to bedefined. The function displays a “Bye” message and overwrites the file “bank.txt” with the information contained inthe array. Required Test Cases: 21 cases o Provide the original “bank.txt” file with at least 10accounts. o Balance (3): 1 valid, 1 incorrect account number, 1 incorrectPIN. o Deposit (3): 1 valid, 1 incorrect account number, 1 incorrectPIN. o Withdrawal (4): 1 valid, 1 incorrect account number, 1 incorrectPIN, 1 insufficient funds. o Transfer (5): 1 valid, 1 incorrect account number, 1 incorrectPIN, 1 incorrect destination account number, 1 insufficient fund. o New Account (2): 1 valid, 1 already existing account number. o Change PIN Number (3): 1 valid, 1 incorrect account number, 1incorrect PIN. o Quit (1): Provide the final content of the “bank.txt” file afterexecuting all the cases listed above. CIS 150 Fall 2018 6 . . .

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now