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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started