Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this programming assignment, you are about to implement the library you did i

ID: 3550066 • Letter: I

Question

In this programming assignment, you are about to implement the library you did in the previous programming assignment using linked list method. All the requirements are the same as those in the previous one.

#include "Library.h"


int main()

{

Library lib;

int quitFlag=1;


do

{

char choice;


cout<<" Welcome to the Library ";

cout<<"Please select one option ";

cout<<" S (Search) I (Insert) D (Delete) P (Print) Q (Quit) ";

cout<<"Enter Your Choice Number: ";


cin>>choice;


switch(choice)

{

case 'S':

case 's':

lib.search();

break;


case 'I':

case 'i':

lib.insertion();

break;


case 'D':

case 'd':

lib.deletion();

break;


case 'P':

case 'p':

lib.print();

break;


case 'Q':

case 'q':

quitFlag = lib.quit();

break;


}


}while(quitFlag);


return 0;

}

__________________________________________________________________________________

__________________________________________________________________________________

__________________________________________________________________________________


#include

#include


#define MAX 100


using namespace std;


class Book

{

public:

int getISBN() { return ISBN; };

void setISBN(int isbn) { ISBN = isbn; }


private:

int ISBN;

};


class Library

{

private:

Book books[100];

int numOfBooks;


public:

Library();

~Library();

void search();

void insertion();

void deletion();

void print();

int quit();

};



__________________________________________________________________________________

__________________________________________________________________________________

__________________________________________________________________________________


#include "Library.h"


Library::Library()

{

numOfBooks = 0;

}

Library::~Library()

{


}

void Library::search()

{

int localIsbn;

cout<<"Enter Books ISBN : ";

cin>>localIsbn;

int i=0;


for(i=0;i>localIsbn;


if(numOfBooks==100)

{

cout<<"there is no more room for new books ";

}

else

{

Book temp;

temp.setISBN(localIsbn);

books[numOfBooks++]=temp;

cout<<"Book added in the system succesfully ";

}

}

//________________________

void Library::deletion()

{

int localIsbn;

cout<<"Enter Books ISBN : ";

cin>>localIsbn;


if(numOfBooks==0)

{

cout<<"There are no books in the system ";

}

else

{

int i;


for(i=0;i>choice;


return choice;

}

Explanation / Answer

Deadline please

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote