Question: draw a flowchart for the following code void create_account (vector &user) { account acc; cout < >acc.accno; cout < >acc.accname; cout < >acc.type; acc.type=toupper(acc.type); if

draw a flowchart for the following code void create_account (vector &user) { account acc;

cout<<" Enter the account No: "; cin>>acc.accno; cout<<" Enter the name of the account holder:"; cin>>acc.accname; cout<<" Enter type of the account (C/S):"; cin>>acc.type; acc.type=toupper(acc.type);

if (acc.type != 'S' && acc.type != 'C') { cout <<"Invalid account type."<

}

cout<<" Enter the initial amount (>=500 for Saving and >=1000 for Current):"; cin>>acc.deposit; if (acc.type=='S'&& acc.deposit<500||acc.type=='C'&& acc.deposit<1000) { cout<<"Invalid amount."<

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!