Answer to Question #30869 in C++ for alper

Question #30869
I cant select C category :S It must be C.. A sequential access file "phonebook.txt" has 10 records, which contains FIRST NAME, LAST NAME, and PHONE NUMBER of a person. Write a C MAIN function to accomplish the following tasks. • . Declare an array of structures A which will hold the records of "phonebook.txt" file. • . Store "phonebook.txt" file into the array of structures A. • . Search the array of structures A for a particular FIRST and LAST NAME of a person which will be read from the standard input. • . If the search is succesful, it will print FIRST NAME, LAST NAME and PHONE NUMBER of the person being searched, otherwise, it will print "NOT FOUND". Create an input file "phonebook" with at least 10 records to test the program. A sample record of "phonebook.txt" file may contain the data fields as shown below: FIRST NAME LAST NAME PHONE NO XXXXXXXXX xxxxxxxx 12345678 Also the struct part of the program can be be: struct phonebook{ char firstname[15]; char lastname[15]; char phone[15]; } A[10];
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog