Question: Use this code to finish the program #include #include void PrintBookList(int rows, int columns, char bookList[][columns]){ // This function print all the book titles (names)
Use this code to finish the program
#include #include void PrintBookList(int rows, int columns, char bookList[][columns]){ // This function print all the book titles (names) in the list for(int i=0; i 0){ // complete the missing code to sort the list of books by names // in ascending order } } } } void PrintBookNameLenght(int rows, int columns, char bookList[][columns]){ // complete the missing code to print the length (number of characters) // of each book title in the list } int main() { char myBookList[10][50] = { "Security Information Visualization", "Beginning Software Engineering", "Cloud Computing", "Network Security", "Cryptography", "Serious Programming", "Computer Graphic", "Malware Analysis", "Compiler Design", "Applied AI", }; printf("--- The Books List Unsorted ---- "); PrintBookList(10,50, myBookList); SortBooKList(10,50, myBookList); printf(" ---- The Books List after Sorting it ----- "); PrintBookList(10,50, myBookList); printf(" ------The length of each Book Title on the List -------- "); PrintBookNameLenght(10,50, myBookList); printf(" --------Check if a given book title exist in the list or not -------- "); // Change the main to allow the user to enter the book name (title) using scanf() function, // instead of hard coding it as follows char bookName [50] = "Cloud Computing"; int found; found = SearchBooKList(bookName, 10, 50, myBookList); if( found > -1){ printf("%s found in the list at index: %d", bookName, found); } else{ printf("%s not exist in the book list", bookName); } return 0; }
