Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write c++ program that will store the data of 40customers in file . the program

ID: 3619181 • Letter: W

Question

write c++ program that will store the data of   40customers in file . the program should take Customer ID ( do not assign sequentialId let the user to assign any ID) Name        Phone number Current Balance Address ( The user should be able toEnter Mutiple Line Address ) The program should Allow the user to searchthe File by Customer ID or By name (it should display in menu if you want to search by CustomerId press 1 Or if by name press 2 ) The program should display complete information of customer whose ID or name entered by the user write c++ program that will store the data of   40customers in file . the program should take Customer ID ( do not assign sequentialId let the user to assign any ID) Name        Phone number Current Balance Address ( The user should be able toEnter Mutiple Line Address ) The program should Allow the user to searchthe File by Customer ID or By name (it should display in menu if you want to search by CustomerId press 1 Or if by name press 2 ) The program should display complete information of customer whose ID or name entered by the user

Explanation / Answer

please rate - thanks hope this is good #include #include using namespace std; void searchid(int); void searchname(int); void print(int,string,string,double,string); int menu(); void storedata(int); int main() {int choice,n; int id; string name; string phone; double balance; string address; coutn; storedata(n); choice=menu(); while(choice!=3) {switch(choice)      {       case 1:searchid(n);             break;       case 2:searchname(n);             break;        }        choice=menu();        } return0;              } void searchid(int n) {int i,sid; int id; string name; string phone; double balance; string address; ifstream in; in.open("data.txt"); if(in.fail())            //is it ok?        { cout>balance;      in.ignore(100,' ');      getline(in,address,'#');     if(sid==id)       {print(id,name,phone,balance,address);        in.close();        return;        }    } cout