Write a modular C++ program that includes the following functions: A functions t
ID: 3660150 • Letter: W
Question
Write a modular C++ program that includes the following functions: A functions to : 1. Create a Binary file. 2. Check if the Binary file exist. 3. Populate the Binary file at the users request (1 Record at the time). 4. Display the contents of the file. 5. Append a record to the file. 6. Delete a record from the file. 7. Search for a certain Record in the file 8. Modify a certain record 9. Sort the file (Extra Credit) 10. Wipe out the contents of the file, include a warning msg and a confirmation from the user.Explanation / Answer
i can help u with a part...finding binary file FILE *fp; if ( (fp=fopen(FILENAME,"rb"))== NULL) { printf(" Unable to access file"); return ; } In this case, fp is a file pointer, FILENAME would probably be 'Something.DAT', and rb means it attempts to read a binary file. If it fails you get the error message. You'll need to know the proper name of the file, of course...
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.