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, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 01:00
Program description: a c# app is to be created to produce morse code. the morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). in sound-oriented systems, the dot represents a short sound and the dash represents a long sound. separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. in a sound-oriented system, a space is indicated by a short period of time during which no sound is transmitted. the international version of the morse code is stored in the data file morse.txt.
Answers: 3
question
Computers and Technology, 22.06.2019 02:00
6. the is particularly susceptible to the effects of alcohol because it receives a large portion of total blood flow and has a high concentration of neurons. a. heart b. pancreas c. brain d. liver
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
You know the right answer?
Serendipity booksellers software development projectâ part 13: a problem-solving exercise
1....
Questions
question
World Languages, 30.05.2020 02:57
question
Mathematics, 30.05.2020 02:57
question
Chemistry, 30.05.2020 02:57
question
Mathematics, 30.05.2020 02:57
Questions on the website: 13722362