Write a menu driven program in C++ to perform the following functions on a binary file “BOOK.DAT” containing objects of the following class:
class Book
{ int BookNo;
char Book_name[20];
public:
// function to enter book details
void enterdetails();
//function to display Book details
void showdetails();
//function to return Book_no
int Rbook_no() {return Book_no;}
//function to return Book_name
int Rbook_name() {return Book_name;}
};
1. Append Records
2. Modify a record for a given book no.
(Use seekg(), tellg() for this purpose)
3. Delete a record with a given book no.
4. Search for a record with a given Book name
5. Display a sorted list of records (sort on Book No.)
6. Display a sorted list of records (Sort on Book Name)
Note: (i) Use dynamic array for sorting of the file.
(ii) Use gotoxy() to display the formatted reports.
(iii) The program should be password protected.
1
Expert's answer
2014-01-10T09:13:13-0500
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.
Dear Robby Nagra, If you have serious assignment that requires large
amount of work and hence cannot be done for free you can submit it as
assignment and our experts will surely assist you. Price depends on
complexity of your assignments and deadline. Please submit your
assignments to our control panel and you'll get price estimation. If
you have further questions please feel free to ask them via
info@assignmentexpert.com (our support department) or use live chat on
this website.
Robby Nagra
07.03.18, 18:17
How much will you charge for this project ?
Leave a comment
Thank you! Your comments have been successfully added. However, they need to be checked by the moderator before being published.
Comments
Dear Robby Nagra, If you have serious assignment that requires large amount of work and hence cannot be done for free you can submit it as assignment and our experts will surely assist you. Price depends on complexity of your assignments and deadline. Please submit your assignments to our control panel and you'll get price estimation. If you have further questions please feel free to ask them via info@assignmentexpert.com (our support department) or use live chat on this website.
How much will you charge for this project ?
Leave a comment