DESCRIPTION: This is a lab about Class from an Intermediate C++ class. I will of
ID: 3560102 • Letter: D
Question
DESCRIPTION: This is a lab about Class from an Intermediate C++ class. I will offer 6000 points for this assignment. Since chegg has a limit of 1500 points I will post 3 more pages with the same problem and will reward you after you reply to each one of them. I will provide the link to each of the pages after a response in the comments. I have posted the files onto google drive here:
https://drive.google.com/file/d/0BxIs5ORUcIhISElRbzgwaHdSSFU/edit?usp=sharing
If you wish to contact me, use my email : pmboyy@yahoo.com
I need this in two days, If you complete this, I have another lab for 6000 points that I will offer to you exclusively.
Just open lab 3 and here are instructions:
1. Convert the BookData Structure to a Class.
The program currently keeps data about books in a structure called BookData. Convert the structure declaration to a class declaration. The existing member variables should be made private.
2. Convert Functions to Member Functions.
The member variables of the BookData structure are accessed or manipulated by the following functions:
setTitle
setISBN
setAuthor
setPub
setDateAdded
setQty
setWholesale
setRetail
isEmpty
removeBook
Because the structure is now a class, and the member variables are private, you will need to convert these functions to member functions of the BookData class.
3. Add New Accessor Functions for Retrieving Data from the BookData Class.
Because the BookData member variables are now private, you will need to add member functions to retrieve their values. Add the following functions to BookData:
getTitle: Will be used to get the contents of the bookTitle array.
getISBN: Will be used to get the contents of the isbn array.
getAuthor: Will be used to get the contents of the author array.
getPub: Will be used to get the contents of the publisher array.
getDateAdded: Will be used to get the contents of the dateAdded array.
getQty: Will return the contents of the qtyOnHand member.
setWholesale: Will return the contents of the wholesale member.
getRetail: Will return the contents of the retail member.
4. Convert the Remainder of the Program to Use the Class.
Now that BookData is a class with private member variables, the addBook, lookUpBook, deleteBook, removeBook, and cashier functions must be modified. Instead of accessing the private member variables directly, these functions must use the class
Explanation / Answer
Ok i will look into lab - 4 soon.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.