Write c++ code for program that will take the followinginformations from user 1.
ID: 3619018 • Letter: W
Question
Write c++ code for program that will take the followinginformations from user 1.customer ID 2.Name 3.Phone number 4.Address and it will store this in File . The program should be able to store Maximuim 40 persons informations. The program should let the User to search the file on theBasis of Customer ID.Write c++ code for program that will take the followinginformations from user 1.customer ID 2.Name 3.Phone number 4.Address and it will store this in File . The program should be able to store Maximuim 40 persons informations. The program should let the User to search the file on theBasis of Customer ID.
Explanation / Answer
please rate - thanks #include #include #include #include using namespace std; struct Customer { int CustomerID; string Name; int PhoneNumber; string Address; }; struct Customer customer[40]; int main() { ofstream File1; char FileName1[]="Customer.txt"; File1.open(FileName1, ios::out); if(!File1) // error message in case outputfile cannot be opened { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.