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
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
Get step-by-step solutions from verified subject matter experts
