Fill This Form To Receive Instant Help
Homework answers / question archive / Lab Report Objective/Purpose of the program Briefly describe the program’s requirements
Objective/Purpose of the program
Briefly describe the program’s requirements.
Analysis/Design
Describe the approach/structure of program. What classes/functions were used?
Testing/Results
Does your program satisfy all requirements of the lab?
If yes, how did you test it? Indicate test cases used, expected values, and show results with screen shots. For example:
Case |
Description |
Test Data |
Expected Result |
Actual Result |
1 |
Describe what you are testing |
Specify the test data |
What is expected |
Actual results – reference an image that you include below. |
If any requirements are NOT met, document the known issues. What did you do to try to solve them?
Make sure you demonstrate in your testing the parts that are working correctly.
Conclusions / Lessons Learned
What difficult problems did you encounter, and how did you handle them?
What new concepts did you learn/reinforce with this lab?
Is there anything you would have done differently?
OBJECTIVES
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 using JTabbedPane.
Create a Stock class to manage the stock activity. It should have private instance variables of
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.
Sample GUI
GRADING RUBRIC
Stock class
|
15 |
GUI class
|
25 |
Code style |
5 |
Lab Report |
10 |
TOTAL |
55 |
CODE STYLE REQUIREMENTS
/****************************************************
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
Follow assignment specification regarding class/method names.
Note that your java filename must match class name (DO NOT rename).
Please use these google drive links to download the answer file.
https://drive.google.com/file/d/19m_UNvbK7gNGyMy76Nsu4WBeCNCG7hgF/view?usp=sharing
Note: If you have any trouble in viewing/downloading the answer from the given link, please use this below guide to understand the whole process.
https://helpinhomework.org/blog/how-to-obtain-answer-through-google-drive-link