do only q6 and show all the work please show work Csc 211- SUMMER 2018-Instructo
ID: 3915713 • Letter: D
Question
do only q6 and show all the work
please show 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
Answer 6:
bookType::bookType(string name,string isbn,double b,int q){
bookName = name;
bookISBN = isbn;
price = p;
quantity = q;
}
// constructor is taing 4 arguments so we assigning these 4 values to the memeber variables of the class name and isbn number and price and quantity
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.