15b_Assignment_1

15b_Assignment_1 - Assignment 1 - Real Estate Classes...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 1 - Real Estate Classes Select one option from the four below. All options are worth the same number of points. The more advanced options are provided for students who find the basic ones too easy and want more of a challenge. Make sure you have read and understand the Modules Information About Programming Assignments and Style Rules for Assignments before submitting this assignment. Hand in only one program, please. OPTION A (Basic): Real Estate Listings 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 0 days to 5 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
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

15b_Assignment_1 - Assignment 1 - Real Estate Classes...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online