![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 08.10.2020 14:01 brazilmade1
In this program, you are required to read in from a text file a list of persons, display their information, add new persons, and do a search for certain persons. The information of each person consists o
Last Name First Name (30 chars, max)
ID (int)
Address (50 chars, max) Your program will open a file al. txt and read one person's info at a time, and you may assume the entries in the file are all in correct forms. Each person's information is collected, in sequence, as name, ID, address. You can assume the maximum number of people in al. txt is 20 . Read from al. txt the information. Each person should take one structure. The structure should be defined as to hold name, ID, and address. 2.
Your program prints the information of all people according the ID numbers in ascending order. The information (name, ID, address) should be identical to the information your program read from al. xt (see sample al. txt as in the same folder of this assignment; you need to follow the same formatting as defined in al. txt) add. If so, the fields of
1. Your program then asks the user if there is additional person to information on this new person are the same format as in al. txt, in sequence of name, ID, address, and your program asks the user to enter one entry at a time.
2. Your program should continue to ask if additional person is to be added, and the user decides whether or not to add a new one
3. After 3, your program asks the user to search for a person by last name. The user will enter the name and your program should print out the information: name, ID, address, in sequence and one line per field (e. g. name takes one line) Your program should continuously ask the user if to search a new person, and stop only if the user chooses so. If there are two or more people with identical last name, each of them should be listed. Your program prints out the information immediately after the person is found.
4. After 4, your program should have a function to print out all people who are "searched and found in the order of first searched and first printed. The standard printed (on screen) information consists: name, ID, address, in sequence and one line per field, similar to that in al. txt
5. Check the sample file for conforming the format, and test if your program works.
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:00, MissSmartyPants88
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
In this program, you are required to read in from a text file a list of persons, display their infor...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 06:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 06:30
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 06:30
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/mkx.png)
Arts, 13.05.2021 06:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 06:30
![Konu](/tpl/images/cats/istoriya.png)
History, 13.05.2021 06:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 13.05.2021 06:30