Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please show all the work and it\'s one question but with different parts please

ID: 3915757 • Letter: P

Question

please show all the work and it's one question but with different parts please solve all the parts

Namet NEATNESS COUNTS. ILLEGIBLE TRACE means o Please work en this sheet and place the L )TRACE AND SHOW WHAT IS OUTPUT on the nest page for ns SHOW ALau INCORRECT: PLEASE PRINT CLEARLY ETTER ONLY of the correct answer therE (Yes; NAME on AL using namespace std; class seeretType pabliei void setIT int,int) void pristO const void incrementYO private: int x int yi int mainO secretType mine-yours mine.settT(13, 17 yours.sellT14, 15) mine,print0 yours printo mine.incrementYO mine.printo yours prist) vaid secretType: sedT(int a, int b) void secretType::print) const void secretType:zincrementYO Page 2 of 13

Explanation / Answer


mine.setIT(13,17); The value of mine object: The value of x is set to 13 and the value of y is set to 17 for mine object.

yours.setIT(14,15); The value of yours object: The value of x is set to 14 and the value of y is set to 15 for yours object.

mine.print(); x and y values of mine object were printed in this case. x=13 y=17

yours.print(); x and y values of yours object were printed in this case. x=14 y=15

mine.incrementY(); The y value of mine object was incremented by 1(which means y = 17+1 = 18)

mine.print(); x and y values of mine object were printed in this case. x=13 y=18 (As y value is incremented in earlier step)

yours.print(); x and y values of yours object were printed in this case. x=14 y=15 (No change)


Answer: C)

x=13 y=17

x=14 y=15

x=13 y=18

x=14 y=15