Course Solutions Uncategorized (Solved) : Flowchart Please Int Main Void Printclassheader Main Program Data String Arr 100 String Fi Q38103469 . . . .

(Solved) : Flowchart Please Int Main Void Printclassheader Main Program Data String Arr 100 String Fi Q38103469 . . . .

 

Flowchart for this please.

int main(){

void printclassheader();

///main program data

string arr[100];

string filename; //NAME of input file

string name; //NAME of people on input file

ifstream in; //FILE OPEN

   cout<<“What input file would you like to use?”;// ask user which file to be opened

   cin>>filename;

   ifstream fin(filename.c_str()); //file open

   if(!in)

{

cout<<“file not openedn”;

return 0;

} // file unable to open

   int count=0;

   cout<<“nnReading records from input file”<<filename<<“nn”;

   while(!in.eof())

   {

   in>>arr[count++];

   }

   while(1){

   int occurrence=0;

   cout<<“who do you want to search for (enterdone to exit)? “;

   cin>>name;

  if(name==”done”)break;

   for(inti=0;i<count;i++){

   if(arr[i]==name)occurrence++;

   }

   if(occurrence==0){

   cout<<name<<“‘s name does not exist inthe listnn”;

   }

   else cout<<“There is”<<occurrence <<” instances of name”<<name<<“nn”;

   }

   cout<<“Thank

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post