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
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"< 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."< if(change==1) { cout<<" Saved Successfully... "; } else { cout <<" No new changes... "; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
