//How can I modify my program to automatically generate bankaccount numbers using a static member in the class and it couldmatch the index number as well.
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
class bankAccount {
public:
bankAccount();
void getData();
int bankAccount_number();
void deposit();
void withdraw();
void printData();
private:
string name;
int bankNumber;
int accountNumber;
string type;
double balance;
double interestRate; };
const int Num = 2;
static int accountNumbers = 0;
int main() {
bankAccount customer[Num];
int choice, choice_1, index = 0;
do {
cout << ” MENUnn” ;
cout << ” Enter 1 to assign the new customer” <<endl;
cout << ” Enter 2 to assign existing customer” <<endl;
cout << ” Enter 3 to assing print customer data” <<endl;
cout << ” Enter 9 to EXIT” << endl;
cout
PayPal Gateway not configured
PayPal Gateway not configured