Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PROBLEM: CONVERT THE BELOW DESCRIPTION INTO JAVA CLASSES (CODE) be Sure to show INHERITANCE and POLYMORPHISM The Niagara Real Estate Company maintains a list of

PROBLEM: CONVERT THE BELOW DESCRIPTION INTO JAVA CLASSES (CODE) be Sure to show INHERITANCE and POLYMORPHISM

The Niagara Real Estate Company maintains a list of properties for sale. Properties come in four types: 1. commercial retail 2. commercial industrial 3. residential 4. farm

All properties, regardless of their type, have the following five attributes: 1. annual property taxes 2. list price 3. lot size (in square feet) 4. location (the city) 5. building (the building on the property)

For convenience Niagara Real Estate has divided the Niagara Peninsula into four cities. These are the only valid locations: 1. stct (St. Catharines) 2. wlld (Welland) 3. ngfl (Niagara Falls) 4. fter (Fort Erie)

All smaller cites and towns are grouped with the nearest large city. Commercial retail properties have one additional attribute, the retail type. This will be either: 1. strip mall 2. large mall 3. street

Commercial industrial properties have one additional attribute, the industry type. This will be either: 1. light 2. medium 3. heavy

Residential properties have four additional attributes: 1. sewer (is the property on city sewers y/n) 2. water (is the property on city water y/n) 3. garage (does the property have a garage y/n) 4. pool (does the property have a pool y/n)

The farm property type is treated as a residential property with one additional attribute, the crop type. These are the only valid crop types: 1. cash 2. vineyard 3. fruit 4. poultry

This is all the information you should need on properties. A description of buildings follows. Buildings come in three types: 1. store 2. factory 3. house

Obviously, stores go on commercial retail properties, factories go on commercial industrial properties, and houses go on residential and farm properties. All buildings, regardless of their type, have the following two attributes: 1. construction material 2. size (in square feet)

Construction materials come in four types: 1. brick 2. wood 3. siding 4. other

Store building types have three additional attributes: 1. shelves (is the shelving included in the sale y/n) 2. checkout (are the cash registers included in the sale y/n) 3. safe (is a safe included in the sale y/n)

Factory building types have three additional attributes: 1. crane (is an overhead crane included y/n) 2. equipment (is other equipment included y/n) 3. rail access (is there railway access y/n)

House building types have 4 additional attributes: 1. number of bedrooms 2. number of bathrooms 3. basement (is there a basement y/n) 4. house type

House types come in the following types: 1. condo 2. row 3. semi 4. bungalow 5. split 6. two story

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimizing Data Collection In Warzones

Authors: Aaget Aamber

1st Edition

B0CQRRFP5F, 979-8869065902

More Books

Students also viewed these Databases questions