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

having issues with my program this is where I am messing up as int HotelRoom::Ch

ID: 3546554 • Letter: H

Question

having issues with my program this is where I am messing up as

int HotelRoom::Change_Status(int roomStatus)

{

    occupancy_status = roomStatus;

}[MST1]

[MST1]Compiler error in this method.  This function is defined as returning an integer value, but you do not return one.  You have to return an integer value.  

Fix this error, make sure your program compiles, test it, and resubmit for grading.

having issues with my program this is where I am messing up as int HotelRoom::Change_Status(int roomStatus) { occupancy_status = roomStatus; }[MST1] [MST1]Compiler error in this method. This function is defined as returning an integer value, but you do not return one. You have to return an integer value. Fix this error, make sure your program compiles, test it, and resubmit for grading.

Explanation / Answer

Your function calls for a int return, if that is not what you are aiming for change it to

void HotelRoom::Change_Status(int roomStatus)

{

occupancy_status = roomStatus;

}