CIS355 Lab 5 – Portfolio Management GUI and File IO with Lab Report- Guaranteed 100% score

Lab Price = $20
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart

Problem Statement
CIS355 Lab 5 – Portfolio Management GUI and File IO
CIS355A Week 5 Lab

CIS355A Week 5 Lab—File Processing

• Add persistent data storage to your Week 4 Lab using text file input/output.

PROBLEM: Stocks4U Portfolio Management System
The portfolio management system you developed for Stocks4U needs the ability to save and restore a user’s data from a text file.

You can code the GUI by hand or use NetBeans GUI Builder Interface.
You will enhance Week 4 GUI to include
• a File menu with menu items: open, save, exit; and
• a label to display total portfolio value.

Stock class
• Modify the toString of Stock class to display as
“Company: qty shares” (i.e., “Apple: 10 shares”)

StockIO class
Create a StockIO class that is used to read from and write to a text file using an ArrayList. Make sure to use a delimiter between the fields; it does not have to be the # character. Example format of the file is:


This class should have two methods.
• getData—reads data from file, returns data in array list of stock objects
• saveData—writes data from an array list to the file in proper format
The file name will be an instance variable that you can set with a parameterized constructor, or with a separate method.

GUI class
Note that you will need to add an ArrayList to your GUI class to manage the data to/from the file. It will act as a parallel array to your DefaultListModel. Any time you add a stock, you must add it in BOTH places. Any time you remove a stock, you must remove it in BOTH places.

File—open should prompt for file name using JOptionPane, read the file and populate the JList.
File—save should prompt for file name to save data from JList to.
File—exit should exit the program.

The total value of the portfolio should be displayed at all times and updated anytime a stock is added or removed.

Sample GUI

Stock class toString modified 5
GUI class
• Menu is added.
• Label is added for total portfolio value.
• Open menu item reads data from a file and displays in list box.
• Save menu item writes data to a text file in proper format.
• Total value is updated whenever any changes are made to stocks (add, remove, open a new file). 15
StockIO class
• getData method reads from file to array list
• saveData method writes from array list to file 20
Code style 5
Lab Report 10

• 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:
Programmer’s Name: Student Name
Program Description: Describe here what this program will do

Submit as a SINGLE zip folder
• all Java files; and
• the Lab report.

Follow assignment specification regarding class/method names.
Note that your Java file name must match class name (DO NOT rename).









Relevant Material
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Payment Details


Lab Price = $20
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart

Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.

Leave a Reply