Draw the sequence diagram for the following scenario of eBroker.
Sell Stock
- The user enters the username and password
- The system checks that the user is a valid user using information from the user database.
- The user enters the stock symbol.
- The system displays current price information for the stock.
- The user enters sale transaction data such as number of stocks to sell and price
- The system checks whether the user has adequate number of stocks in his account to sell.
- The system creates a new sale transaction.
- The system informs the stock exchange about the sale transaction.
- The stock exchange informs the system (eBroker) when the sale is executed.
- The system updates the user's account.
- The system terminates the sale transaction created in step 7.
Assume the following classes: stock, sale transaction, account. You can add any other classes you deem necessary.