Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario: You have been hired as an associate for a Real Estate Portfolio company specializing in renovations. Your first task is to create a program

Scenario:

You have been hired as an associate for a Real Estate Portfolio company specializing in renovations. Your first task is to create a program that calculates the break-even cost for each property under their portfolio. The Real Estate Portfolio currently has 5 properties under their portfolio. Each property has the following characteristics: an address, purchase price, and a renovation cost.

At minimum, each property must have an address. The purchase price of the property must be greater than zero and the renovation cost should be no greater than the purchase price. In order to calculate a propertys break-even cost, you must enter the propertys tax percentage for the area (for example, the tax percentage could be 5%). The tax percentage can only be as high as 33%. Use the below formula to calculate the break-even cost for each property.

Break-Even Cost Formula Purchase Price + Renovation Cost + (Purchase Price * (1 + tax percentage))

Your object-oriented application must use a data definition class to model each Property with an implementation class requesting each properties characteristics and the tax percentage. The data definition class should track the address, purchase price, and renovation cost. Accessors and mutators must be created for all instance variables.

With a completed data definition class, your implementation class should only define 1 property object, but be reused to instantiate each property. Your object-oriented application will gather the properties address, purchase price, renovation cost, and that propertys tax percentage. The application should then print out well-formatted report containing the property address, purchase price, renovation cost, and break-even cost. Then, the application should repeat this process until all 5 properties have been entered. Once all properties have been entered, print out a final well-formatted message stating the average purchase price, renovation cost, and break-prices for all the properties.

Other Requirements:

  • Your solution must use object-oriented techniques (No points earned for a procedural solution).
  • Your solution must be designed as a modular solution using methods other than main, with each method performing one task. The main method should contain only a very minimal amount of code, calling methods instead.
  • Your solution must include appropriate constants, constructors, accessors, mutators, and special purpose methods with exception handling, as necessary in support of the problem.
  • Your solution may not use any functions or language constructs not covered during IT 106 or this semesters IT 206 without prior authorization from your instructor, even if you know other functions or language constructs. We want everyone to be on the same "playing field", regardless of previous programming exposure, and get practice with algorithmic design to solve problems (the intent of the course). Using something existing not discussed in class does not give you as much practice as solving the problem yourself. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask!

Hints:

  • You do not need to use arrays to solve this problem. Keep in mind once you have finished entering the information for one property, it is not necessary to keep the information.
  • Think about what type of validations might be appropriate for this application. Make sure these are all handled.
  • Think about any special purpose methods that might be needed in the data definition class. Special purpose methods are important when using values in instance variables to perform a specific process.

Programming Assignment 1: Solution Design

  1. List and describe the purpose of each class that will be needed to solve this problem
    1. You must separately identify (list) and describe the purpose of each class. One or two sentences per class should be sufficient. You do NOT need to include the CircleDrawer class, since this class was provided for you.
  2. Data Definition Class(es) - Create a detailed UML Class Diagram, listing and explaining all class variables, accessors, mutators, special purpose methods, and constructors associated to each data definition class.
  3. Implementation Class - Create a table that lists all methods that will be used to create the implementation class. For each method identified, provide the following:
    1. A 1-2 sentence describing the purpose of the method
    2. A list of the names, data types, and brief description (1-2 sentences) for each input variable into the method, if there are any
    3. The name and data type of the variable to be returned from the method, or void if nothing will be returned

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

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions