Question: This program will store information about a person s stocks and mutual funds. The information about share assets which would need to be known is:

This program will store information about a persons stocks and mutual funds.
The information about share assets which would need to be known is: the symbol, number of shares owned, price paid per share, and the current price. There are stocks that pay dividends and those that do not. Stocks that pay a dividend would need the amount of dividends paid. The difference between a mutual fund and a stock is that a person can own parts of a share of a mutual fund, while entire shares of stock must be owned. (Hint: An OO concept applies here.) The user should be able to find out the current market value of an asset as well as the profit or loss of the asset.
*Note: You do not need to retrieve stock information from the internet. That is beyond the scope of this assignment.
Design a Java program that keeps track of a persons stock assets. The program must meet the following requirements:
Use user defined classes and inheritance.
A given asset should only have information about one asset stock, dividend stock, or mutual fund.
A GUI interface must be used.
Exception handling & testing.
Collections
Support shares of multiple stocks as well as participate in multiple mutual funds.
Support saving & loading portfolio
The stock and mutual fund information (portfolio) must be stored in a text file.
The user should be able to load the portfolio and have it displayed in the GUI.
Please view the rubric attached to this assignment on canvas for a more detailed breakdown on each of the five requirements of the project.
Helpful Formulas
CurrentMarketValue = NumberSharesOwned * CurrentPricePerShare
NetValue = CurrentMarketValue -(NumberSharesOwned * PricePaidPerShare)
If NetValue is positive you have a profit, otherwise you have a loss.
User defined classes with correct inheritance are present. User defined classes are used by the rest of the project. All fields and/or methods of the class are correct for the project description. No unused and/or unnecessary code is present in user defined classes.
GUI that handles project requirements is present and used by the rest of the project. No unused and/or unnecessary code is present in the GUI.
Program supports multiple stocks and mutual funds with no arbitrary limits. Stocks and mutual funds are stored in the same collection.
Portfolio can be saved and loaded from a text file. The save / load process does serialize / deserialize the custom classes. Uses relative file paths instead of absolute file paths.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!