Tuesday, 12 January 2016

Book Shop Program

Q:-   A book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays whether it is available or not. If it is not, an appropriate message is displayed. If it is, then the system displays the book details and requests for the number of copies required. If the requested copies book details and requests for the number of copies required. If the requested copies are available, the total cost of the requested copies is displayed; otherwise the message “Required copies not in stock” is displayed. Design a system using a class called books with suitable member functions and Constructors. Use new operator in constructors to allocate memory space required. Implement C++ program for the system.

Software & Hardware Used:-

  • Framework :- QT 5.5.1
  • Os                 :- Linux 64 bit(Ubuntu 14.04LTS)

Download Link

Find all files including screen shot (.jpeg format) @ mediafire
Password:- prgwonders

 

Class Description

  • MainWindow

    Directly deals with the graphics
  • Inv

    Is used to implement a linked list of books. With functions like add, search and purchase
  • Book 

    It is the class for each book. Contains default and parameterised constructor. Contains all required information along with pointer to the next. 

     

Screen Shot

QT-BookShop-C++ Snapshot
QT-Book Shop

No comments:

Post a Comment