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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 05:20, reeeeeee32
What did creator markus “notch" persson initially call his game
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, 19youngr
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, rose6038
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
image
Computers and Technology, 23.06.2019 16:30, azainababbas
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
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 in other subjects:

Konu
Mathematics, 23.11.2020 04:50
Konu
Mathematics, 23.11.2020 04:50