# programming

posted by .

There are several types of room in a hotel. The HotelRoom Class of Previous Programming Problem was not specific regarding the type of room. Assume that a hotel has guest rooms and meeting rooms. Modify the HotelRoom class as follows: remove the capacity and status instance variables and associated methods. Change the class constructor, copy constructor, and destructor accordingly. Derive from Hotel Room the classes Guestroom and Meeting Room. Guestroom contains the following data members: the integer instance variable capacity, which represents the maximum number of guests that can occupy the room; the integer instance variable status, which represents the number of guests in the room (0 if unoccupied); and the integer instance variable days, which represents the number of days the guest occupies the room. Meeting Room has the integer instance variable seats, which represents the number of seats in the room, and the integer instance variable status (1 if the room is booked for a meeting; 0 otherwise). Code all appropriate constructors, copy constructors and destructors for the classes. Code a function main () to test the classes. Make sure to create object of all types. Computer Science

## Similar Questions

1. ### Finite Math

Please help...i'm totally lost with this one. Construct a linear program for the following situation. Do not solve. A hotel is refurbishing its rooms, each type of which will accommodate either one or two persons. A one-person room …
2. ### Pre-Calculus

The Hotel Bellville has 400 rooms. Currently the hotel is filled . The daily rental is \$ 250 per room. For every \$ 14 increase in rent the demand for rooms decreases by 5 rooms. Let x = the number of \$ 14 increases that can be made. …
3. ### Pre-Calculus

The Hotel Ventor has 400 rooms. Currently the hotel is filled. The daily rental is \$ 600 per room. For every \$6 increase in rent the demand for rooms decreases by 7 rooms. Let x = the number of \$ 6 increases that can be made. What …
4. ### math

Help please >.< The Hotel Lakewell has 450 rooms. Currently the hotel is filled . The daily rental is \$ 750 per room. For every \$ 4 increase in rent the demand for rooms decreases by 7 rooms. Let x = the number of \$ 4 increases …
5. ### math

Help pleaseeee The Hotel Regal has 500 rooms. Currently the hotel is filled. The daily rental is \$ 400 per room. For every \$4 increase in rent the demand for rooms decreases by 8 rooms. Let x be the number of rooms that are being rented …
6. ### Math

The Hotel Regal has 600 rooms. Currently the hotel is filled . The daily rental is \$ 250 per room. For every \$ 4 increase in rent the demand for rooms decreases by 4 rooms. Let x = the number of \$ 4 increases that can be made. What …
7. ### pre-calculus

The Hotel Florence has 550 rooms. Currently the hotel is filled . The daily rental is \$ 700 per room. For every \$ 14 increase in rent the demand for rooms decreases by 7 rooms. Let x = the number of \$ 14 increases that can be made. …
8. ### math

A hotel has rooms numbered 1 to 1000. One thousand visitors enter the hotel. 1. The first visitor switches on the light switches of every room. 2. The second visitor switches off the light switches of every other room, starting with …
9. ### precalculus

The Hotel Thomasina has 500 rooms. Currently the hotel is filled . The daily rental is \$ 1000 per room. For every \$ 4 increase in rent the demand for rooms decreases by 8 rooms. Let x = the number of \$ 4 increases that can be made. …
10. ### computer programming

HotelRoom class programming . Replace Disply_Number() and Display_Guest() methods by the methods Get_Number() and Get_Guest(), respectively , so that each returns a pointer to the corresponding instance variable. Recode main() as necessary …

More Similar Questions