subject

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
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 22.06.2019 21:00
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
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
question
Mathematics, 12.04.2020 21:10
question
Mathematics, 12.04.2020 21:10
question
Mathematics, 12.04.2020 21:10
question
SAT, 12.04.2020 21:11
Questions on the website: 13722359