I have to write a C++ program that will ask the user to enter option c to \"chec
ID: 3757943 • Letter: I
Question
I have to write a C++ program that will ask the user to enter option c to "check out book" or d to "check in book" when c is enter, the program will ask the user to enter the book's author's name, last name, and book's title. It will then set the checkout date, due date for two weeks, and stores to the binary file. when d is entered, it reads in information about the book and search it from the binary file. if the book it's not found, a message will print out. If it is found, the current date is compared with the due date and the book will be removed from the array.
Explanation / Answer
#include #include #include struct library { char author[20],title[20],pub[20]; int price; library *next; }; int sum=0; void main() { clrscr(); library *head=NULL; library *initial(void); library *purchase(library *); //library *sale(library *);void display(library *); void stock(library *); void search(library *); int choice; while(1) { coutRelated 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.