Banking system This system tracks customers’ accounts in a bank, The system prov
ID: 3636225 • Letter: B
Question
Banking system
This system tracks customers’ accounts in a bank, The system provides the following
functionalities: Add a new account, withdraw, deposit, display the account.
The system interface has an interface like the following:
Welcome to our Banking System
You can do one of the following actions using this banking system:
1. Add a new account
2. Withdraw from the account
3. Deposit to the account
4.Display the account information
5. Display total of the customers’ balances
6.Exit
Explation
When the user chooses 1, the system generates a new ID, and then asks the user to enter a name for that account. The initial balance is set to zero.
When the user chooses 2, the system asks the user to enter account ID and amount to be withdrawn. If this amount is greater than the balance, a message is displayed that this transaction failed because insufficient balance. If balance is enough, it decreases by amount to be withdrawn.
When the user chooses 3. The system asks the user to enter account ID and amount to be deposited. System increases balance by this amount.
When the user chooses 4, the system asks the user to enter account ID then prints account’s name and balance.
Each time a task is completed the system gets back to the main menu above until the user chooses 5.
Hints:
Implement the choices in the menu as functions in your program, even the menu itself.
Arrays should be used.
Your system should use file to retrieve previous data ( if exist) each time it starts. When the user chooses to exit the program, the data should be saved in the same file.
please The doctore want the answer without class . use array, loop, function , switch
Explanation / Answer
#include //needed for I/O operations #include //needed for string operations #include //needed for file operations //pre defined constant for maximum number of accounts #define MAX 30 using namespace std; string name[MAX]; // acc holder name int acno[MAX]; // acc number double balance[MAX]; // balance array int autoacno=0; // represents current number of records in a file // member function to deposit void deposit() { double amt; int acno; coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.