Placeholder

CIS355A Week 4 Lab Stocks4U Portfolio Management System

$19.00

Description

OBJECTIVES
Create a GUI that uses JList and JTabbedPanes.
Process multiple objects in an ArrayList.
Code event handlers for multiple events.
PROBLEM: Stocks4U Portfolio Management System
Stocks4U needs to develop an app for you to manage your stock purchases.You should be able to store a list of stock purchases, view the individual stocks, add and remove stocks.
FUNCTIONAL REQUIREMENTS
You can code the GUI by hand or use NetBeans GUI builder interface.
The GUI should have two tabs usingJTabbedPane.
One tab (“Show stocks”) should have
a JList to display all the stock purchases;
a text field or label to display information about a particular stock; and
a JButton to remove a stock.
One tab (“Add stock”) should have textboxes, labels, and a button to input a stock.
Create a Stock class to manage the stock activity. It should have private instance variables of
company name;
number of shares;
purchase price; and
current price.
Create a default and parameterized constructor.
Create sets/gets for all instance variables.
Create a get method to calculate and return the profit or loss. This would be calculated as
Number of shares * (current price – purchase price).
Create toString to display the name of the stock.
As you add stocks, they are displayed in the JList.
If you select an element in the JList, the gain or loss is displayed in the label or text field.
If you select an element in the JList and click Remove, the stock is removed from the list.
CODE STYLE REQUIREMENTS
Include meaningful comments throughout your code.
Use meaningful names for variables.
Code must be properly indented.
Include a comment header at beginning of each file, example below.
/****************************************************
Program Name: ProgramName.java
Programmer’s Name: Student Name
Program Description: Describe here what this program will do
***********************************************************/
DELIVERABLES
Submit as a SINGLE zip folder
All java files
Lab report
Follow assignment specification regarding class/method names.
Note that your java filename must match class name (DO NOT rename).
SCREENSHOTS
SOLUTION
PAYMENT
The solution includes a zip file.
Attachments [Move over files to preview content of those files]
CIS355A_Week_4_Lab.zip (800.14 KB)
CIS355A-Lab-4-Add-Stock-Screenshot.png
CIS355A-Lab-4-Netbeans-Screenshot.png
CIS355A-Lab-4-REPORT-Screenshot.png
CIS355A-Lab-4-Show-Stock-Screenshot.png
cis355a_lab_4_report.docx
Java code
Stock.java
StockGUI.java
Netbeans project
CIS355AWeek4Lab
build
classes
.netbeans_automatic_build
.netbeans_update_resources
Stock.class
StockGUI.class
build.xml
manifest.mf
nbproject
build-impl.xml
genfiles.properties
private
private.properties
private.xml
project.properties
project.xml
src
Stock.java
StockGUI.java
test
Preview Stock.java
}
xxxxxx xxxxx(xxxxxx xxxxx, xxx xxxxxxx, xxxxxx xxxxxx, xxxxxx xxxxxx) {
xxxxxxxxxxxxxx(xxxxx);
setNumberShares(nShares); setPurchasePrice(pPrice); setCurrentPrice(cPrice); }
public void setCompanyName(String cName) { this.companyName = cName; }
public String getCompanyName() { return companyName; }
xxxxxx xxxx xxxxxxxxxxxxxxx(xxx xxxxxxxxxxxx) {
xxxx.xxxxxxxxxxxx = xxxxxxxxxxxx;
}
xxxxxx xxx xxxxxxxxxxxxxxx() {
Preview StockGUI.java
xxxxxx xxxxxxxx() {
xxxxxxxxxxxxxx();
xxxxxxxxxxxx.xxxxxxxx(xxx xxxxxxxxxxxxxxxx());
}
@SuppressWarnings(“unchecked”)
//
//GEN-BEGIN:initComponents
private void initComponents() {

jTextField1 = new javax.swing.JTextField();
tabbedPane = new javax.swing.JTabbedPane();
listTab = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
stockListGUI = new javax.swing.JList<>();
stockInfo = new javax.swing.JLabel();
removeStockButton = new javax.swing.JButton();
addStockTab = new javax.swing.JPanel();
xxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
Preview Stock.java
}
xxxxxx xxxxx(xxxxxx xxxxx, xxx xxxxxxx, xxxxxx xxxxxx, xxxxxx xxxxxx) {
xxxxxxxxxxxxxx(xxxxx);
setNumberShares(nShares); setPurchasePrice(pPrice); setCurrentPrice(cPrice); }
public void setCompanyName(String cName) { this.companyName = cName; }
public String getCompanyName() { return companyName; }
xxxxxx xxxx xxxxxxxxxxxxxxx(xxx xxxxxxxxxxxx) {
xxxx.xxxxxxxxxxxx = xxxxxxxxxxxx;
}
xxxxxx xxx xxxxxxxxxxxxxxx() {
Preview StockGUI.java
xxxxxx xxxxxxxx() {
xxxxxxxxxxxxxx();
xxxxxxxxxxxx.xxxxxxxx(xxx xxxxxxxxxxxxxxxx());
}
@SuppressWarnings(“unchecked”)
//
//GEN-BEGIN:initComponents
private void initComponents() {

jTextField1 = new javax.swing.JTextField();
tabbedPane = new javax.swing.JTabbedPane();
listTab = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
stockListGUI = new javax.swing.JList<>();
stockInfo = new javax.swing.JLabel();
removeStockButton = new javax.swing.JButton();
addStockTab = new javax.swing.JPanel();
xxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxx();
xxxxxxxxxxxxxxxxxxxxxx = xxx xxxxx.xxxxx.xxxxxxxxxx();
Price: $19
Buy Now
Checkout
Added to cart
Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.
CIS355A Week 4 Lab Stocks4U Portfolio Management System – $19.00
CIS355A Week 5 Lab File Processing Stocks4U Portfolio Management System – $19.00
CIS355A Week 6 Lab Student Management System – $19.00
CIS355A Week 4 Course Project Flooring Application Analysis and Design – $19.00
CIS355A Week 7 Course Project Flooring Application User Manual and Application Code – $25.00
Add to Cart
Checkout
Added to cart
You May Also Like:
CIS355A Entire Course
CIS355A Week 1 Lab Developing an OOP Console Application
CIS355A Week 2 Lab Developing a GUI Application
CIS355A Week 3 Lab BurgersRUs Point of Sale system
CIS355A Week 4 Course Project Flooring Application Analysis and Design
CIS355A Week 5 Lab File Processing Stocks4U Portfolio Management System
CIS355A Week 6 Lab Student Management System

Reviews

There are no reviews yet.

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