Populate the stock closing price listbox control after the


1. Database design

Design a relational database for the stock trading system using Microsoft Access. You should determine the tables to be created, the attributes in each table, and the primary key in each table.

DO NOT define foreign keys in this assignment even they do exist. It will be easier for you to debug your VB program when foreign keys are absent.

Do NOT use special characters (e.g., space) in table/attribute names.

Do NOT use any Microsoft Access Reserved word (List of MS Access Reserved words: https://support.office.com/en-us/article/Access-2007-reserved-words-and-symbolse33eb3a9-8baa-4335-9f57-da237c63eabe).

The system maintains common stocks records. Each stock is described by a ticker symbol (e.g., BAC), a company name, exchange venue (e.g., NYSE), listing date, sector, and industry.

The system also keeps track of stocks' daily closing records. Each closing record consists of a ticker symbol, a date, the opening price, the highest price of the day, the lowest price of the day, the closing price, the trading volume on that day, 1 day price change %, and last year's return rate %. Users can use the system to place market order requests for stock trading. A market order is a request to purchase or sell a  stock at the current market price. Each order request should include a ticker symbol, date and time of the request, type of order (buy or sell), quantity of stock to be traded, and order status (pending, completed, or cancelled).

2. Database population

Use Microsoft Access to populate at least 10 records into each of the database tables created above. You must pick at least 10 stocks from this web site:

https://www.1stock1.com/1stock1_112.htm , where you can find last year's return rate % for each stock. For other stock information, please use the Yahoo! Finance (https://finance.yahoo.com/stock-center/) and search by the stock ticker symbol. The sector and industry information can be found from the company profile page on Yahoo! Finance. Please make sure that you have at least 2 sectors and 2 industries per sector, and that each industry has at least 2 stocks.

After you populate the stocks table, you should populate daily records and trading requests based on either true market data or your imagination. Please make sure that you have a mixture of different order types and statuses for different stocks. A minimum of 10 records is required for each table. For this assignment, you do NOT need real and accurate values. If you cannot find certain values, just make up the values.

3. SimpleBroker v1.0: A DataReader Application.

MB v1.0 is a DataReader application for placing stocking trading request. You must use a DataReader object to retrieve records from the database and a Command object to update the database. The following describes the components needed for the development.

(1) User interface: You should design your user interface to support the following functions. Label objects should be used appropriately to make your interface user-friendly.

(2) Populate the stock ticker ComboBox control: The user should start with a ComboBox control (StocksComboBox) that displays the complete list of stock tickers retrieved from the database.

(3) Populate the stock closing price ListBox control: After the user selects a stock ticker from StocksComboBox, a ListBox control (ClosingPricesListBox) should display a list of past closing prices of the selected stock. Each past closing price should indicate both a date and a closing price (e.g., "03/20/2013-$90.23"). The list should be ordered by descending dates.

(4) Populate a ListBox control: After the user selects a stock ticker from StocksComboBox, another ListBox control (TradingRequestsListBox) will display a list of currently pending stock trading requests for the selected stock. Each request should indicate the order type and stock quantity (e.g., "BUY-2000"). The list is ordered by the order type first and then by quantity.

(5) Define a TradeRequest class for all stock trade requests.

• The class has five properties: stock ticker symbol, request date and time, order type, quantity of stock to be traded, and order status. The order type property value can only be either "SELL" or "BUY". The order status value can only be one of the three values {"PENDING",  "COMPLETED", "CANCELLED"}. All letters must be upper-case letters. The stock quantity must be greater or equal to 0.

• The class has a constructor method that is used to initialize the property values of a new instance. The following two properties should be initialized as: request date time = current date and time; order status="PENDING".

• The class has a subroutine that is used to store a stock trade request to the database. The subroutine takes an OleDBConnection object as its input and uses the connection object to communicate with the database. The subroutine must use either data validation or exception  handling technique to deal with any possible error related to the database connection.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Populate the stock closing price listbox control after the
Reference No:- TGS01359123

Expected delivery within 24 Hours