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

  Summarize by outlining the sequence of operations

Explain how an operating system can temporarily pass control of the CPU over to user code without risking an indefinite loss of control. Discuss the roles of timer interrupts, privileged mode operation, and memory protection and explain why all of..

  A sharper image

Iain works on the Web development team for a prominent community college system in the Southwest part of the United States. He was assigned to create several new Web pages, most of which would include detailed images. These images would aid nav..

  What is the probability that a dishonest claimant

What is the probability that a dishonest claimant is falsely verified as an authentic entity, i.e., what is the probability that the dishonest claimant responds correctly to all 11 challenges?

  Computer security week 4 discussions

Assume that you are part of a management team of a medium-size business that sells goods to consumers online. You know that your system was recently hacked, and that accounts and customer information may have been stolen. How do you respond to the..

  Related to web services

A review paper usually should include multiple (about 5) references. I would like to see references from referred conference proceedings or journals.

  Write a loop that subtracts one from the class

1- Write a loop that subtracts one from the Class Dog's energy for every 30 steps that the Dog takes. 2- Make the player-controlled Class Dog move more slowly whenever the method isTired returns a value of true.

  What type of address is stored in the source address field

What type of address is stored in the Source Address field of an Ethernet frame

  Assessing security risks for determining infrastructure

As part of project to assess security risks for determining infrastructure, you have found that other managers often have various ideas on severity and levels of risk.

  The cost of having the tree removedwould

Suppose that your neighbor owns an old tree, with branches that extend over yourlawn. He enjoys having the tree, getting utility of $100, and incurring $65 ofcleanup costs on his own lawn. However, the tree drops leaves and crabapples onyour lawn, wh..

  Calculate on network to be safe

You are a new IT security professional for a small police department. At first you did not see your agency as being a large target for attacks.

  Create an applet to draw a digit using the method

Create an applet to draw a digit using the method fillRect of the class Graphics. For instance, if the input is 4, the applet will display the digit 4. In java language please

  Mobile phone photo analysis

Mobile Phone Photo Analysis

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