Define a traderequest class for all stock trade requests

Assignment Help Basic Computer Science
Reference no: EM131012129

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.

Reference no: EM131012129

Questions Cloud

Create a flash movie that animates two figures : Create a flash movie that plays a sound clip of some music continuously while the movie plays
Why is marketing so vital to a new business : Why is marketing so vital to a new business? What challenges do new businesses have when it comes to marketing that established businesses do not? How would you recommend overcoming those challenges?
What is preferable as an engine of success in society : You can tackle the general question over what is preferable as an engine of success in American society government or business, private sector or public. Select a policy issue as your case study
The firms overall cost of capital was used a hurdle rate : An all-equity firm is considering the following projects: Which projects have a higher expected return than the firm's 11% cost of capital? Which projects should be accepted? Which projects would be incorrectly accepted or rejected if the firm's over..
Define a traderequest class for all stock trade requests : 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 shoul..
Find the directional derivative of f passing through point p : Evaluate the gradient of f at point P. Find the directional derivative of f passing through P in the direction of the vectur u.
Identify the operating system : Based on the system and its operating system, please research the vendor and its website to identify any hardening guides and documents you may find.
Brokerage account-how many year will take to reach your goal : You have $29,216.63 in a brokerage account, and you plan to deposit an additional $6,000 at the end of every future year until your account totals $220,000. You expect to earn 10% annually on the account. How many years will it take to reach your goa..
Describe your understanding of the social work profession : Describe your understanding of the social work profession and its core values. How have you incorporated social work values in your human service experiences and interactions with others? Social workers behave in a trustworthy manner

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd