Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Serendipity 8: Completely the BookData Class Functions For this chapter's exercise you will complete the BookData class member functions and define an array of BookData
Serendipity 8: Completely the BookData Class Functions
For this chapter's exercise you will complete the BookData class member functions and define an array of BookData objects. 1. Complete the BookData Member Functions. Complete the class's member functions according to the following specifications he function should accept a string object (assumed to hold the book title) as an argument. The contents of the string object should be copied to the bookTitle member. setTitle The function should accept a string object (assumed to hold the ISBN number) as an argument. The contents of the string object should be copied to the isbn member. setIsbn he function should accept a string object (assumed to hold the author's name) as an argument. The contents of the string object should be copied to the author member. setAuthor setPub he function should accept a string object (assumed to hold the name of the ook's publisher) as an argument. The contents of the string object should be copied to the publisher member. The function should accept a string object (assumed to hold the date) as an argument. The contents of the string object should be copied to the dateAddded member. setDateAdded he function should accept an int (assumed to hold the quantity of the boo as an argument. The contents of the argument should be copied to the gtyOnHand member. setQty The function should accept a double (assumed to hold the wholesale price of the book) as an argument. The contents of the argument should be copied to the wholesale member setWholesaleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started