Write a c program to accept n book details such as book_title, book_author, publisher and cost.Assign the accession number to each book in increasing order Display these details as 1 Book of specific author 2 Books by specific publisher 3 All books costing Rs. 500 and above 4 All books.
#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> void book_auth(); void book_pub(); void book_cost(); void disp_book(); void add_book(); struct book { char book_title[20]; int acc_no; char author[20]; char pub[20]; int cost; }; int count; struct book b[100]; void main() { int ch; while(1) { clrscr(); printf("\n 1:add book \n"); printf("\n 2:specific author \n"); printf("\n 3:specific publisher \n"); printf("\n 4:cost above 500 \n"); printf("\n 5:all book \n"); printf("\n 6:exit \n"); printf("\n\n enter the choice \n"); scanf("%d",&ch); switch(ch) { case 1: add_book(); getch(); break; case 2: book_auth(); getch(); break; case 3: book_pub(); getch(); break; case 4: book_cost(); getch(); break; case 5: disp_book(); getch(); break; case 6:exit(0); } } } void add_book() { if(count==9) { printf("\n