Placeholder

CMIS 242 Project 4 Manage a Real Estate Database

$9.99

Description

The fourth programming project involves writing a program to manage a real estate database. This program should be comprised of an enumerated type, an interface and two classes. The enumerated type should be named Status and should contain three enumeration literals, FOR_SALE, UNDER_CONTRACT and SOLD.
The interface should be a generic interface named StateChangeable and it should have a bounded generic type parameter whose type must be an enumerated type. It should contain one abstract method changeState that has a parameter whose type of the generic type parameter.
The first of the two classes should be named Property. It should implement the StateChangeable interface. It should contain five instance variables, the property address stored as a string, the number of bedrooms, the square footage and the price, all stored as integers, and the status of the property whose type should be the enumerated type Status. In addition, it should have the following three methods:
A constructor that accepts four parameters for the purpose of initializing the characteristics of the property, the address, the number of bedrooms, the square footage and the price. The status of the property should be set to FOR_SALE.
A method named changeState that allows the status of the property to be changed.
An overridden toString method that returns a string containing the property address, the
number of bedrooms, the square footage, the price and the current status, appropriately labeled.
The second class named Project4 should contain the main method. In addition, it should contain an instance variable that defines the database of property records, which is implemented as a TreeMap, with the transaction number field as the key and a Property object as the value. It should generate the GUI shown below:
Clicking the Process button should cause the selected choice of the three database actions in the combo box to its right to be executed. It should first check whether any non integer values have been entered in any of the fields that require integers. If so, an error message should be displayed in a JOptionPane window. The operation should be performed when the user clicks the Process button. If the user attempts to insert a key that is already in the database an error message should be displayed using a JOptionPane message dialog box. If the user attempts to delete or find a record that is not in the database, a message should also be displayed. After each successful operation is completed a JOptionPane window should be displayed confirming the success. In the case of a successful Find request, a window should pop up containing all the information in the associated Property object.
Clicking the Change Status button should cause status of the property association with the designated transaction number to be changed to status selected in the combo box to its right.
Be sure to follow good programming style, which means making all instance variables private, naming all constants and avoiding the duplication of code. Furthermore you must select enough different kinds of transactions to completely test the program.
SCREENSHOTS
SOLUTION
PAYMENT
CMIS 242 Project 4
CMIS 242 CMIS 242 Project 4 Manage a Real Estate Database
CMIS 242 Project 4 Screenshot
CMIS 242 Real Estate Database
The solution consists of:
All Java programs for this assignment.
A Netbeans Project in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CMIS242_Project_4.zip (340.24 KB)
Netbeans Project
CMIS242Project4
pom.xml
src
main
java
Project4.java
PRJ4Property.txt
test
java
target
classes
.netbeans_automatic_build
Project4.class
Property.class
Status.class
StatusChangeable.class
generated-sources
annotations
maven-status
maven-compiler-plugin
compile
default-compile
createdFiles.lst
inputFiles.lst
test-classes
.netbeans_automatic_build
readme.txt
Screenshots
CMIS242-PROJECT-4-SCREENSHOT-1.png
CMIS242-PROJECT-4-SCREENSHOT-2.png
CMIS242-PROJECT-4-SCREENSHOT-3.png
CMIS242-PROJECT-4-SCREENSHOT-4.png
CMIS242-PROJECT-4-SCREENSHOT-5.png
Source Code
PRJ4Property.txt
Project4.java
Preview Project4.java
xxxxxx xxxxx.xxxxx.xxxxxxxxxxx;
xxxxxx xxxxx.xxxxx.xxxxxx;
xxxxxx xxxxx.xxxxx.xxxxxxxxxx;
xxxxxx xxxx.xx.xxxxxxxxxxxxxx;
xxxxxx xxxx.xx.xxxx;
import java.io.FileReader; import java.util.HashMap; import java.util.Map;
//enumerated type should be named Status and should contain three enumeration literals, FOR_SALE, UNDER_CONTRACT and SOLD enum Status { FOR_SALE, UNDER_CONTRACT, SOLD; } //generic interface
xxxxxxxxx xxxxxxxxxxxxxxxx
> {
xxxx xxxxxxxxxxxx(x x);
}
//////////////////////////////////////////////////// xxxxxxxx xxxxxxxx xxxx 3 xxxxxxx
Preview PRJ4Property.txt
7623:563 Main St, 4, 2234, 243212, 1 8729:One State Blvd, 7, 4280, 1250000, 0 7321:7865 W. Patrick Dr, 5, 3090, 26000, 2 3242:876 Northwest Way, 3, 1350,175000, 0 9823:76 Inverness Rd, 5, 2890, 398500, 2
9823:76 xxxxxxxxx xx, 5, 2890, 398500, 2
2341:45871 xxxxxx xxx, 5, 2850, 385750, 1
8321:44 xxxxx xxxxx xxx, 3, 1750,215250, 0
Preview readme.txt
xx xxxx xxxxxxxx, xx xxxxxxxx xxxxxx xxxx xxx xxxxxxxx xxxxxxx.
xxx xxx xxxxxxx xxxxxxxx xx xxxx xxx xxx xxx xxxxxxxx xxxxxxx
xx
xxx xxx xxxx xxx xx xxxxxx xxxxxxx xxx xxxx xxxxxx xxxx xx “xxx” xxxxxx.
If you are using Netbean. Please choose Netbeans and JDK version as follow:
based on the NetBeans release documentation, here is a summary of the JDK versions you can use with all recent versions of NetBeans:
NetBeans 11.0: JDK 8, JDK 11, JDK 12
NetBeans 11.1: JDK 8, JDK 11, JDK 12
xxxxxxxx 11.2: xxx 8, xxx 11, xxx 13
xxxxxxxx 11.3: xxx 8, xxx 11, xxx 14
xxxxxxxx 12.0: xxx 8, xxx 11, xxx 14
Preview PRJ4Property.txt
7623:563 Main St, 4, 2234, 243212, 1 8729:One State Blvd, 7, 4280, 1250000, 0 7321:7865 W. Patrick Dr, 5, 3090, 26000, 2 3242:876 Northwest Way, 3, 1350,175000, 0 9823:76 Inverness Rd, 5, 2890, 398500, 2
9823:76 xxxxxxxxx xx, 5, 2890, 398500, 2
2341:45871 xxxxxx xxx, 5, 2850, 385750, 1
8321:44 xxxxx xxxxx xxx, 3, 1750,215250, 0
Preview Project4.java
xxxxxx xxxxx.xxxxx.xxxxxxxxxxx;
xxxxxx xxxxx.xxxxx.xxxxxx;
xxxxxx xxxxx.xxxxx.xxxxxxxxxx;
xxxxxx xxxx.xx.xxxxxxxxxxxxxx;
xxxxxx xxxx.xx.xxxx;
import java.io.FileReader; import java.util.HashMap; import java.util.Map;
//enumerated type should be named Status and should contain three enumeration literals, FOR_SALE, UNDER_CONTRACT and SOLD enum Status { FOR_SALE, UNDER_CONTRACT, SOLD; } //generic interface
xxxxxxxxx xxxxxxxxxxxxxxxx
> {
xxxx xxxxxxxxxxxx(x x);
}
//////////////////////////////////////////////////// xxxxxxxx xxxxxxxx xxxx 3 xxxxxxx
Price: $25
You May Also Like:
CMIS 242 Project 1 Minimum Maximum and Average
CMIS 242 Project 2 Computes the Sales Tax
CMIS 242 Project 3 Draws Two Types of Shapes

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.