Question: In C++ Language Write a c program, that works in three modes. Info-entrance, info-scarch modes, and terminate mode In info-entrance mode the program asks the

 In C++ Language Write a c program, that works in three

In C++ Language

Write a c program, that works in three modes. Info-entrance, info-scarch modes, and terminate mode In info-entrance mode the program asks the user to enter the name, address, account number and balance amount of several persons each one at a time. Once the information for a person is entered the program saves this info in n file (database.txt, for all persons). The program should stop reading persons info when nothing is entered at name position. Then the program returns to modes acceptance state. . In info-search mode the program will accept from user a name of the person to search for and then display the details of that person if this person exist, otherwise an appropriate message is displayed. . In terminate mode the program terminates. A sample of the working of this program: Enter the mode (E: for data entrance, S: to search for a person data, T: terminate) E person 1 name: Ali person 1 address: Tafila person 1 account number: 12345 person 1 balance: 400 person 2 name: Enter the mode (E: for data entrance, S: to search for a person data, T: terminate) S Enter the name of the person: Ali Name: Ali Address: Tafila Account number: 12345 Balance: 400 Enter the mode (E: for data entrance, S: to search for a person data, T: terminate) Thanks for your time

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!