| | |
Urgent solution needed.....
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 2
Reputation:
Solved Threads: 0
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 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 constructiors to allocate memory space required.
Improve the sytem design to incorporate the following features :
a. The price of the books should be updated as and when required. Use a private member function to implement
this.
b. The stock value of each book should be automatically updated as soon as a transaction is completed.
c. The number of successful and unsuccessful transactions should be recorded for the purpose of statistical
analysis. Use static data members to keep count of transactions.
Modify the program to demonstrate the use of pointers to access the members.
, 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 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 constructiors to allocate memory space required.
Improve the sytem design to incorporate the following features :
a. The price of the books should be updated as and when required. Use a private member function to implement
this.
b. The stock value of each book should be automatically updated as soon as a transaction is completed.
c. The number of successful and unsuccessful transactions should be recorded for the purpose of statistical
analysis. Use static data members to keep count of transactions.
Modify the program to demonstrate the use of pointers to access the members.
Are you sure that daniweb is the best place for lazy pupils?
Read this: http://www.daniweb.com/forums/announcement8-2.html
Read this: http://www.daniweb.com/forums/announcement8-2.html
You will require a class named book and a vector of books ,etc. Give it a try.
![]() |
Similar Threads
- Urgent solution needed (Visual Basic 4 / 5 / 6)
- Urgent solution needed (VB.NET)
- Urgent solution needed (C++)
- pyapal - i am unable to make payment through it - urgent help needed (eCommerce)
Other Threads in the C++ Forum
- Previous Thread: Not repeated elements in link list (help)
- Next Thread: help with array resizing
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






