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, 22.06.2019 13:00
We as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in a computer’s language, however, it is preferred to have the operators on the right side of the operands, i.e. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix.write a program that takes an “infix” expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % (example infix expression: (7 - 3) / (2 + 2)postfix expression: 7 3 - 2 2 + /result: 1guidelines: 1. you will need to use stacks in three placesa. one for the parenthesis check [char stack]b. one during infix to postfix [char stack]c. one during evaluation [int stack]for a and b above, you can use same array and same push, pop method as both ofthem are char. but for evaluation you have int stack and you might consider to createanother push pop method to handle it. maybe push_int, pop_int, etc. or find otherstrategy to utilize existing push pop method2. you can create a function for obtaining operator priority. that function should take anoperator as input and return its priority as an integer. this function will you a lot andreduce repeated code3. during evaluation you will need to convert char into integer. example for single digit: char c = '5'; int x = c - '0';
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
Jason is working on a microsoft excel worksheet and he wants to create a print preview shortcut. his teacher asks him to access the customization option to create the new shortcut. which two tabs should jason select to place the print preview shortcut on the worksheet toolbar? a. new tab (custom) and new group (custom) b. new file tab (custom) and new tab (custom) c. new custom group and new command d. new custom tab and new command
Answers: 2
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
Computers and Technology, 11.09.2019 23:30
question
Mathematics, 11.09.2019 23:30
question
English, 11.09.2019 23:30
question
Mathematics, 11.09.2019 23:30
Questions on the website: 13722361