Answered You can hire a professional tutor to get the answer.

QUESTION

This homework is so hard to me because I haven't studied C++ for 2 year. THANK YOU! Create a class called Property that has the following private...

This homework is so hard to me because I haven't studied C++ for 2 year.Please help! THANK YOU!Create a class called Property that has the following private members:* type - The category of the listing Rental (RNT), Condo (CND), Single Family Dwelling (SFD). These three values can be established as #defined ints, as global enum types, or as static class constants, depending on what you have had in your previous course.* int price - the asking price of the property. * int bedrooms - an int from 1 to MAX_ROOMS (which is set as a static class constant, or #defined, to 20)* int days_on_market - an int that represents how many days the property has been on the market, accepted values being from zero days to five years.* string address - an oversimplified address containing whatever you decide to put into it.We will not include the many other members that we know would be in such a class like MLS listing number, lot size, age, # bathrooms, etc. This is just an example.You should supply all of the following methods (at a minimum):* Accessors and Mutators (Set() and Get()) for most or all of these members.* Two Constructors - one that takes no parameters (default) and all five parameters. Let constructors call mutators or helper functions so there is no code duplication for testing passed arguments.* ConvertToRental() instance method that converts a for-sale property (CND or SFD) and turns it into a RNT property. It converts the price to a rental price by dividing by 300. It also clears the days_on_market to 1.* PrintListing() instance method that produces a short description of the property based on the values in the object. You determine the format of this, and do so in a manner that results in a clear presentation.* Class Constants, i.e., public static consts, for all limiting and default values (string max lengths, max number of bedrooms -- even the 300 conversion factor described above). We never want to see any literal in your method definitions.You should instantiate at least four Property objects, prop1, ... prop4 either manually from literal values in your program or by getting information from the user. Display the Properties, modify the contents through the mutators and re-display them.Always do filtering of user-parameters when writing mutator or constructor methods so that no illegal or out-of-range data is ever written to the object.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question