Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c program, that works in three modes. Info-entrance, info-search modes., and terminate mode In info-entrance mode the program asks the user to enter

image text in transcribed

Write a c program, that works in three modes. Info-entrance, info-search 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 a 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 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) T Thanks for your time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions