943,915 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 627
  • C++ RSS
Dec 4th, 2008
0

Urgent solution needed.....

Expand Post »
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.
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
samishunk is offline Offline
2 posts
since Dec 2008
Dec 4th, 2008
2

Re: Urgent solution needed.....

I'll do it for $500.
Team Colleague
Reputation Points: 1135
Solved Threads: 171
Super Senior Demiposter
Rashakil Fol is offline Offline
2,478 posts
since Jun 2005
Dec 4th, 2008
0

Re: Urgent solution needed.....

Are you sure that daniweb is the best place for lazy pupils?
Read this: http://www.daniweb.com/forums/announcement8-2.html
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008
Dec 4th, 2008
0

Re: Urgent solution needed.....

> I'll do it for $500.
I'll do it for $5000.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Dec 4th, 2008
0

Re: Urgent solution needed.....

Click to Expand / Collapse  Quote originally posted by Salem ...
> I'll do it for $500.
> I'll do it for $5000.
I'll do it for $5005..
Reputation Points: 47
Solved Threads: 69
Posting Whiz
cikara21 is offline Offline
340 posts
since Jul 2008
Dec 4th, 2008
0

Re: Urgent solution needed.....

Wow, an inverse auction in progress! :O
Reputation Points: 134
Solved Threads: 18
Junior Poster
mrboolf is offline Offline
182 posts
since Jun 2008
Dec 5th, 2008
0

Re: Urgent solution needed.....

You will require a class named book and a vector of books ,etc. Give it a try.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
Dec 5th, 2008
-1

Re: Urgent solution needed.....

hey guys...m damn serious yar...
plz provide me wid da soln na...plz....
Reputation Points: 9
Solved Threads: 0
Newbie Poster
samishunk is offline Offline
2 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Not repeated elements in link list (help)
Next Thread in C++ Forum Timeline: help with array resizing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC