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

I need help this problem. this is c++ language Write a C++ function to display a

ID: 3698825 • Letter: I

Question


I need help this problem. this is c++ language

Write a C++ function to display a list of all books that are published by the author Sara Smith". Use the following class diagram Only to solve the problem Note Submit the function in a pdf or doc format. Book -title: string -borrowed: boolearn -authors: Author [I +Book (title, authors +get title 0: string +get authors : Author tis_borrowed 0: boolean +set tide(title): void +set_authors(Authors): void Author -name: string -email: string Author (name, email) +get_name (): string +get _email (0: string +set_name (name): void + d set email (email): voi

Explanation / Answer

main(){

           

            vector<Author> list;

            Book books[50];                                                         // Assuming maximum 50 books are available

// Iterate over each book

            for(int i=0; i<50;i++)}{

// Get list of all the authors of current book

                        list = listbooks[i].getAuthors();

// Iterate over authors list to check if current book has author "Sara Smith", if yes then print book title

                        for(int j=0; j<list.size;j++){

                                    if(list[j].comapre("Sara Smith") == 0)

                                                cout<<books[i].title<<endl;

                        }

            }

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