Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago