Question: * * * * //File name: Account_list * * * * //File name: funtion named find(). C Chegg Study | Guided Sc xCSE 202 Apps

 * * * * //File name: Account_list * * * *

*

*

*

*

//File name: Account_list

//File name: funtion named find(). C Chegg Study | Guided Sc xCSE

*

*

*

*

//File name: funtion named find().

202 Apps O YouTube CAS-Calfornia StateFacebaok a Amazancom:Online Online CCompile Add owner

C Chegg Study | Guided Sc xCSE 202 Apps O YouTube CAS-Calfornia StateFacebaok a Amazancom:Online Online CCompile Add owner name owner and a pointer to a linked account attached_account to class Account from lab 1 class Account f private string owner; double balance; double interest_rate; in percent Account * attached_account; public: bi In main() read in a list of accounts from Account_list and populate a vector of pointers to accounts. vector all_accounts; Use attached_account pointer to link accounts with the same owner name. We assume a person can only have up to two accounts Finally, generate a report such that if an owner has two accounts, both accounts are listed on the same line. Here is one possible output for the above input file Washington 10000 . 00 5.00% Jefferson 20ee.ee 4.50%SECOND ACCOUNT: 45eee. 21 3.25% Hamilton 3eeee .50 6.00% SECOND ACCOUNT: 2eee.ee 4.59% Franklin 250ee. ee 7.20% SECOND ACCOUNT: 21200.33 6.00% Jefferson 45000. 21 3.25% SECOND ACCOUNT: 2000.00 4.50% Franklin 212ee .33 6.00% SECOND ACCOUNT : 25eee.ee 7.20% Adam Hamilton 20ee.ee 4.50% SECOND ACCOUNT: 3eeee.se 6.00% 15eee . 00 4.5?% Note the info for people with two accounts is printed twice. We will fix this in an enhancement later Don't forget to clean up (delete) all dynamically allocated memory! Use this find function to find matching accounts 9:39 AM Type here to search C Chegg Study | Guided Sc xCSE 202 Apps O YouTube CAS-Calfornia StateFacebaok a Amazancom:Online Online CCompile Add owner name owner and a pointer to a linked account attached_account to class Account from lab 1 class Account f private string owner; double balance; double interest_rate; in percent Account * attached_account; public: bi In main() read in a list of accounts from Account_list and populate a vector of pointers to accounts. vector all_accounts; Use attached_account pointer to link accounts with the same owner name. We assume a person can only have up to two accounts Finally, generate a report such that if an owner has two accounts, both accounts are listed on the same line. Here is one possible output for the above input file Washington 10000 . 00 5.00% Jefferson 20ee.ee 4.50%SECOND ACCOUNT: 45eee. 21 3.25% Hamilton 3eeee .50 6.00% SECOND ACCOUNT: 2eee.ee 4.59% Franklin 250ee. ee 7.20% SECOND ACCOUNT: 21200.33 6.00% Jefferson 45000. 21 3.25% SECOND ACCOUNT: 2000.00 4.50% Franklin 212ee .33 6.00% SECOND ACCOUNT : 25eee.ee 7.20% Adam Hamilton 20ee.ee 4.50% SECOND ACCOUNT: 3eeee.se 6.00% 15eee . 00 4.5?% Note the info for people with two accounts is printed twice. We will fix this in an enhancement later Don't forget to clean up (delete) all dynamically allocated memory! Use this find function to find matching accounts 9:39 AM Type here to search

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!