Write a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book. Book Id (you may...


Write a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book.



  • Book Id (you may use index number as book ID)

  • Book Code

  • Book Name

  • Author Name

  • Publish Date

  • Price

  • No of copies in hand

  • No of Copies sold



Initialize 10 Books and initialize remaining with 0 and spaces.


Create a menu, as given below, which should use above information to perform selected action from the given menu on the screen



  1. Add book (One book will be added. User will enter book id i.e. index number Record will be placed if code at that index is 0)

  2. Display book (Display Books in tabular format with nonzero codes only)

  3. Delete book (Place an empty record with 0 code and spaces at the selected index)

  4. Search book

  5. Sale book (First locate the book Id and check if code is not 0 then update No of Copies in hand and No of Copies sold accordingly)

  6. Exit


Your assignment will be evaluated on the following basis:



  • Functions defined and used in the program

  • Coding style

  • Output Formatting and messaging

  • C code (Solution properly indented and commented)

  • Screen shot of the output screen with white background. One screen for each option



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here