subject

Serendipity booksellers software development projectâ part 13: a problem-solving exercise
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. in chapter 11 you created the following functions for directly accessing or manipulating the member variables of the bookdata structure: settitle setisbn setauthor setpub setdateadded setqty setwholesale setretail isempty removebookbecause 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. chapter 13 introduction to classesâ©2012 pearson education, inc. upper saddle river, nj. all rights reserved. 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âs member functions you created in step 2.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
What best describes a career pathway in a lodging career? a worker starts out as an amusement attendant, then becomes a recreation worker, and then becomes a gaming worker within five years. a worker starts out as a bell hop, then becomes a night clerk, and then becomes a hotel manager within five years. a worker starting out as a tour guide, then becomes a travel clerk, and then becomes a travel agent within five years. a worker starts out as a server, then becomes a food preparer, and then becomes a head chef within five years.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
You know the right answer?
Serendipity booksellers software development projectâ part 13: a problem-solving exercise
1....
Questions
question
Mathematics, 24.03.2021 02:50
question
Mathematics, 24.03.2021 02:50
question
Business, 24.03.2021 02:50
question
Mathematics, 24.03.2021 02:50
question
Mathematics, 24.03.2021 02:50
question
Mathematics, 24.03.2021 02:50
question
History, 24.03.2021 02:50
Questions on the website: 13722367