do q5 and show all the work Csc 211- SUMMER 2018-Instructor: A. A Name: NEATNESS
ID: 3915769 • Letter: D
Question
do q5 and show all the work
Csc 211- SUMMER 2018-Instructor: A. A Name: NEATNESS COUNTS ILLEGIBLE means. (Yes; NAME on ALL PAGES) woALL WORK means INCORRECT: PLEASE PRINT CLEARLY. sheet and place the LETTER ONLY of the correet answer there. is described above Note: Please SELECT the two from the list below: o lines that must be addedl to the C S for what that a) bookType 0; bookType (string, string, double, in); b) bookType:: bookType O bookType:: bookType (string, string, double, int) c) bookType 0: bookType:: bookType (string, string, double, int); d) bookType 0: bookType (string, double, int) Write the FULL FUNCTION DEFINTION (that means, HEADER and BODY) fo DEFAULT CONSTRUCTOR HERE 5) 6) Write the FULL FUNCTION DEFINTION for the SECOND (#2) CONSTRUCTOR HERE: Page 8 of 13Explanation / Answer
5
Default Constructor :
Header:
bookType();
Body:
bookType::bookType(){
bookName = " ";
bookISBN = " ";
price = 0.0;
quantity = 0;
}
6.
Argument Constructor :
Header:
bookType(string,string,double,int);
Body:
bookType::bookType(string n,string isbn,double p,int q){
bookName = n;
bookISBN = isbn;
price = p;
quantity = q;
}
DO ask if any doubt. Please upvote.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.