Assume that you are developing a stock trading system . Yours ystem must keep traders of stocks in a know when there is a change on any stock. Assume the following: • you have the following stocks:...


Assume that you are developing a stock trading system .


Yours ystem must keep traders of stocks in a know when there is a change on any stock.


Assume the following:


• you have the following stocks:


jawwal, ooredoo, gas


• the change on the stock called trades which could be buy or sell


• each one of the above stocks has a list of traders (observers) who must be


notified when there is a change in that stock


what to submit:


• a class diagram showing the role of each class in your system


• a full java code that contains subjects and observer,


• for the observers (traders) create 5 concrete traders classes,


• and for subjects (stocks) consider the above concrete subjects (jawwal,


ooredoo, gas)


• a driver class to test your code and show that is running. For each stock


(subject) add traders (observers), make a change such as sell or buy.


Print that the person has made a change on the stock. For example,


Ahmad sold jawwal stock at 100 NIS price.



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here