subject
Computers and Technology, 24.03.2021 17:40 yash797

This function prompts the user to input a book type. Then it displays the list of books that have the entered book type only. Lastly, it should display the number of books that met this requirement. This function should display both book's title and aisle number. See expected output below. // 05: displayBookTypeList (15 points) // This function prompts the user to enter a type name. This function then searches for books with this book type. // Parse through the linked list passed as parameter and print the matching book details ( title and aisle) one after the other. See expected output screenshots in homework question file. // HINT: Use inputs gathered in executeAction() as a model for getting the book type input. // NOTE: You may re-use some 02 displayBookList(list) code here. void displayBookTypeList(struct libraryList* tempList) { // Enter code here } 1/ 02: displayBookList (already implemented) // This function displays the book details (struct elements) of each book. 1/ Parse through the linked list 'list' and print the book details ( title and aisle number) one after the other. // Book type is not display in this function. // Notice that 'list' is passed to the function argument. Recursion is used to keep calling this function till end of list. void displayBookList(struct libraryList* templist) { if (tempList == NULL) // check if end of list is reached { printf("\n (end of list) \n"); return; } else { printf("\nBook Title: %s", tempList->book->title); printf("\nAisle number: %d\n", tempList->book->aisle); displayBookList(tempList->next); // move on to next book } } displayBookTypeList (15 points) CSE 240 HW 7 Please enter your selection: a: add a new book to the list d: display book list (no book type) b: search for a book on the list c: add a book type of a book 1: display books who have a specific book type r: remove a book q: quit 1 Please enter book's type: Nonfiction Book Title: Sapiens Aisle Number: 1 ( Sapiens recently added book type as 'Nonfiction' which was added to tail of her *bookType list. So, it's name appears when l'option is used ).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
question
Computers and Technology, 25.06.2019 01:00
When a new name is registered on the internet, the process can take two hours to four hours four hours to three days two hours to two days one hour to eight hours
Answers: 1
You know the right answer?
This function prompts the user to input a book type. Then it displays the list of books that have th...
Questions
question
Mathematics, 11.05.2021 18:20
question
Health, 11.05.2021 18:20
question
Mathematics, 11.05.2021 18:20