The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

The first line in stock.dat has an integer that indicates how many stocks are described in the file.

Subsequently, each stock is described as follows, one stock description per line.

Stock label (String) initial volume (int) price (double)

Modify the stock class and create stock objects (in Broker) from the descriptions read from the stock.dat file.

The first line in customer.dat has an integer that indicates how many customers are described in the file.

Subsequently, each customer is described as follows, one customer at a time

Customer Name Account Balance on the top line:

Modify the customer class and create customer objects (in Broker) from the descriptions read from the customer.dat file. Note that all customers
start with empty portfolio and can have a portfolio that contains many different stocks – as many as described in the stock.dat class.

Then,

First – displays the Current state of all the stocks. Then displays the all the customers and their portfolio.

Then, provide a menu for the user to:

Select a customer, view their portfolio and or trade stocks as in 3(b).

Until the session is terminated when exit option.

Finally – display the current state of all the stocks. Then display all the customers and their current portfolio.