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

  Ealuation order and exceptions

Suppose we add an exception mechanism similar to the one used in ML to pure Lisp. Pure Lisp has the property that if every evaluation order for expression e terminates, then e has the same value under every evaluation order. Does pure Lisp with ex..

  Perform a benchmark analysis

Write an algorithm to classify the edges of a directed graph G into the four categories: tree edge, back edge, forward edge and cross edge (defined in 22.3 Depth First Search - Classification of edges).

  Design and implement a graphical user interface (gui)

Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse

  List the three features not supported in vcenter server

•In your words, write a brief explanation on processor, vRAM, vCPU entitlements as well as vCenter server and SUSE Linux for VMware.•List the three features not supported in vCenter server

  Discuss windows and mac os

Apple's Mac OS is a major competitor for Windows, and many people feel very strongly about choosing one over the other. For this assignment, locate articles online that discuss the differences between Windows and Mac OS. You may discuss any recent..

  Find the least common multiple of the pairs of integer

Find the least common multiple (lcm) of the pairs of integers given in exercises.

  List uses that this type of computer could support

List uses that this type of computer could support for whichever division selected from above.Explain why you think the impact will or will not occur, cite sources when necessary, and justify your position using APA format.

  Different document processing applications in more detail

First, make a list of as many different word document applications as you can find. •Second, research at least two different document processing applications in more detail. You cannot use Word as one of your choices. List the advantages and disadvan..

  Identify the advantages and disadvantages of circuit switch

Identify the advantages and disadvantages of circuit switching and packet switching-X.25, Frame Relay, Asynchronous Transfer Mode2, and Transmission Control Protocol/Internet Protocol (TCP/IP)-regarding performance, speed and throughput potential, an..

  Intellectual property law is a major issue facing organize

Intellectual property law is a major issue facing organizations

  Write a program that prompts the user to enter an integer

Write a program that prompts the user to enter an integer, n, and the n floating-point numbers. As the numbers are read, the program will calculate the average of the positivie numbers.

  Design an employee class

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

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