CPSC-115 Fall 2008
Project 6 - 50 points
Due: 5:00 p.m. Tuesday December 9th.
Professor Heidi Ellis

Goal

In this project, you will gain experience with inheritance and interfaces. You will be modeling the properties that are sold in a real estate office.

This project will be completed using the following pairs:

Teammate 1Teammate 2    Teammate 1Teammate 2
Kristen AndersonJin Feng Liu   Jake ElderCatherine Doyle
Jeffrey YoungGreg Vaughan   Ryan ErslandCorazon Irizarry
John WilstermanJesse Vazquez   Chelsea Bainbridge-DonnerNick Dragu

Deliverables:

You must provide the following:

Overview

In this project, you are to model the properties in a small real estate office. You will model different types of properties that are for sale including land, houses and condos. You will also create a simple class to represent a realtor selling properties. The UML class diagram for the application is shown below:

Implementation Details

Below I have provided details for each of the entities shown in the UML class diagram above: Note the following hints when developing: In addition to the classes shown in the UML class diagram above, you must also create a RealtorTest class. This class contains only a main method. The main method should test your application by minimally doing the following:
  1. Create an instance of a Realtor.
  2. Create at least one instance each of Land, House, and Condo instances.
  3. Call the sell method on several instances of the properties that you have created in the previous step.
  4. Add all of the properties that you created to the realtor's listing.
  5. Print out the realtor's listing.
A test run of such a main method might look like the following:
The Properties: 
**** LAND ****
MLS ID: G32156 AVAILABLE  Address: 123 Farm Rd. Price: $1000000.0
Number of acres: 120.5 Features: perc tested
**** HOUSE ****
MLS ID: G892343 SOLD  Address: 23 Ridge Rd Price: $300000.0
Square foot: 2400.0 Beds: 4.0 Baths: 2.5
Lot size: 1.02
**** CONDO ****
MLS ID: G72343 AVAILABLE  Address: 100A New Heights Price: $120000.0
Square foot: 1200.0 Beds: 2.0 Baths: 1.0
Fees: 400.0
**** HOUSE ****
MLS ID: G44856 AVAILABLE  Address: 193 Valley Way Price: $400000.0
Square foot: 3500.0 Beds: 4.0 Baths: 3.5
Lot size: 9.2
**** CONDO ****
MLS ID: G994992 SOLD  Address: 100B New Heights Price: $110000.0
Square foot: 1200.0 Beds: 2.0 Baths: 1.0
Fees: 400.0
You must abide by the following:

Grading:

Project 6 will be graded on: