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

B – Bookroom(s) – prompt the user for the number of guests needing aroom. Find t

ID: 3617808 • Letter: B

Question

B – Bookroom(s) – prompt the user for the number of guests needing aroom. Find the first (lowest number) empty room and store thenumber of guests for that room. If the number of guests isgreater than the room maximum, book as many rooms asnecessary. Display a confirmation message with the roomnumber(s), or an error message if there are not enough emptyrooms.  

C –Checkout – Prompt the user for a room number. If valid,set the number of room guests back to zero and display aconfirmation; otherwise display an error message.

S –Summary report – Display the room number and number of guestsfor ONLY the rooms that are currently booked.

Q-Quit.

Explanation / Answer

please rate - thanks #include using namespace std; class Motel { private:     int guests; public:     Motel();     int getguests();     void setguests(int);     }; Motel::Motel() {guests=0; } void Motel::setguests(int g) {guests=g; } int Motel::getguests() {return guests; } void summary(Motel[]); void book(Motel[]); void checkout(Motel[]); int main() {Motel room[12]; char choice; int num; for(;;) {cout