Question: draw a flowchart for the following void modify (vector &user) { account acc; int accno=0; int i=0; char ch; int found=0; int change=0; cout <

draw a flowchart for the following

void modify (vector &user) { account acc; int accno=0; int i=0; char ch; int found=0; int change=0;

cout<<"Modify Account"; cout<<" ------------------ ";

while (1) { cout<<"Enter the Account number to Modify Account: "; cin>> accno;

for (i=0; i

if(found==0) { cout <<"Account not found!! Try again.."<

do { cout<<" 0 to Modify Account No"<>ch;

switch (ch) { case '0': cout<<" Enter new Account No to Modify:"; cin>>user[i].accno; change=1; break; case '1': cout<<" Enter new Account Holder Name to Modify: "; cin>> user[i].accname; change=1; break; case '2': cout<<" Enter new Type of Account to Modify: "; char type; cin>> type; type=toupper (type);

if (type != 'S' && type != 'C') { cout <<"Invalid account type."<>user[i].deposit; change=1; break; } } while(ch!='4');

if(change==1) { cout<<" Saved Successfully... "; } else { cout <<" No new changes... "; }

}

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!