Application that models the ups and downs of a particular stock.
create an application that models the ups and downs of a particular
stock. The value of a stock is assumed to change by plus or minus a specified number of units
after every time unit (such as one hour). A notification is generated each time a stock changes
more than a specified number of units above or below its initial value. A collection of brokers who
control the stock must receive this notification. The range within which the stock can change
every time unit and the threshold above or below which collection of brokers who control the stock
must be notified are specified when the stock is created (using its constructor).
You shall design and implement a C# application that satisfies the specification given above. This
application involves .NET EventHandler events, threads, and text file processing.
When an event of this type is fired, the stock's name, initial values, current values, and the number
of changes in value can be sent to the listener . The sending information is sent to the console
window and a text file. You are required to use built-in .NET EventHandler delegate in your
solution.
Create the class Stock with the following attributes:
• Stock name
• Stock initial value
• Maximum change (the range within a stock can change every time unit)
• Notification threshold (the threshold abov