Cpt121 cosc2135 programming assignment for this assignment


Programming Assignment

Background information

For this assignment you need to write an object-oriented console application in the Java programming language which adheres to basic object-oriented programming principles shown below:

a) Setting the visibility of all instance variables to private.

b) Encapsulating both the data for a class and the methods that work with and/or manipulate that data within the same class.

c) Using superclass methods to retrieve and/or manipulate superclass properties from within subclass methods where necessary.

d) Taking advantage of polymorphism wherever possible when invoking methods upon objects that have been created.

The scenario we are modelling is that of Real Estate System for a real estate agency in which properties can be sold in two different ways:

  • A "normal" sale, where the owner sets a fixed asking (reserve) price and the sale is closed automatically as soon as an offer at or above the reserve price is made (ie. reflecting that the property has been sold). A property put up for sale in this manner will remain up for sale indefinitely until the reserve (asking) price has been reached or exceeded.
  • An "auction" sale, where the agency accepts offers (bids) for the property until they decide to close the auction.

The real estate agency will keep accepting offers (bids) for a property that is put up for sale in this manner until they decide that no more bids are forthcoming - at which point they will close the auction "manually" (no additional bids will be accepted after this point).  A property that is put up for auction will be "passed in" if the reserve price has not been reached or exceeded at the point where it is closed.

Disclaimer: While the scenario described is based upon the concept of a movie rental store management system, the specification for this task is intended to represent simplified version of such a system and thus is not meant to be a 100% accurate simulation of the any movie rental store management system or service that is being used at a "real life" movie rental store.

In this assignment you will be required to complete the implementation of a partially complete object oriented program that models some of the basic functionality that may be required to handle both "normal" Sales and Auctions in the Real Estate System described above.

This task is divided up into several stages, each of which corresponds to the concepts discussed during specific weeks of the course as shown below:

Stage 1 - Sale class (provided in startup code)

 Stage 2 - Real Estate System

Stage 3 - Auction class

Stage 4 - Real Estate System updates

Stage 5 - Updating Pay Scale Level Functionality

Startup code files have been provided for the Sale and RealEstateSystem classes and you are expected to continue with the implementation of the program starting the initial set of features in the RealEstateSystem as described in stage 2.  Note Stage 1 has been completed for you.

A startup code guide has been provided for eclipse users which takes you through the process of importing the startup code files in a step by step manner.  For students programming on the console (ie. writing code in a text editor and compiling / running the program in a command prompt window you just need to download these two startup code files to the folder of your choosing.

A full description of the structure of and functionality included within the Sale class has been provided in Stage 1 of the specification.  Your task begins with continuing the implementation of the program starting with the initial set of RealEstateSystem features as described in stage 2.

Attachment:- Assignment.rar

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Cpt121 cosc2135 programming assignment for this assignment
Reference No:- TGS01711755

Expected delivery within 24 Hours