Write a program in which you declare a class HotelRoom. The class has the following private instance variables: the room number (a string), the room capacity (an integer representing the maximum number of people the room can accommodate), the occupancy status (an integer, 0 if the room is not occupied, otherwise the number of occupants in the room), and the daily rate (a double). Include a three-argument constructor that sets the room number to its first argument, the room capacity to the second argument, the room rate to the third argument, and that sets the room occupancy status to 0. Add the following methods to the HotelRoom class: an accessor method for each instance variable of the class (Get_Number(), Get_Capacity(), Get_Status(), and Get_Rate() ); a one-argument method Change_Status() that changes the occupancy status of the room to the value of its argument. The method should verify that the argument value does not exceed the room capacity. If it does, the method should return -1.
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.