Add owner name owner and a pointer to a linked accountattached_account to class Account from lab 1.
class Account {private: string owner; double balance; double interest_rate; // in percent Account * attached_account;public: …};
In main() read in a list of accounts from Account_list andpopulate a vector of pointers to accounts.
vector<Account *> all_accounts;
Use attached_account pointer to link accounts with the sameowner name. We assume a person can only have up to twoaccounts.
Finally, generate a report such that if an owner has two accounts,both accounts are listed on the
PayPal Gateway not configured
PayPal Gateway not configured