Here it is...
Write a C++ class definition for an abstract data type describing a bookstore
inventory. Each book has the following attributes:
· Book number (long)
· Book title (character string)
· Book author (character string)
· Book price (floating-point number having two decimal places)
· Count of books (integer)
The member functions are as follows:
· A constructor that is used to initialize the attributes to the default values.
· A function that reads input from keyboard.
· A function that displays in a readable tabular form the contents of the
entire book collection.
· A modify function that, once called, prompts the user for a code (T, A,P or C) indicating which attribute (title, author, price, or count) of the book is to be changed; finally the function should provide a prompt for
the new value of the attribute.
Write a main program that declares an array of objects and tests the above class.
Halo...i have a question regarding c++ programming..hmm........?
For getting help for your project assignment there are better websites like http://getafreelnacer.com/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment