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

  Need help with writing prototype functions

Need help with writing prototype functions: For this assignment, you must write pseudocode and C code for several sub-functions that use pointers and arrays, and a main() function that calls your sub-functions, printing the specified values

  Explain what is meant by information technology

Explain what is meant by information technology (IT). Explain what is meant by information systems (IS). Why is it important to understand the differences between information technology (IT) and information systems (IS)?

  Significant factors contributing to mmcc-s success

Write down most significant factors contributing to MMCC's success with its new, secure, self-managed network? Describe the reasons for your choices.

  Create an applet to draw a digit using the method fillrect

In Java Programming, 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. I will also need the HTML code along with the code

  How does a database system generate xml document

1. How does a database system generate XML document from database data? What is the importance of the order of tables in a SQL statement that uses FOR XML? (at least 200 words)

  Define a subroutine that takes an integer array

Define a subroutine that takes an integer array

  Blog style page on the website to discuss

Research discuss how the "right to be forgotten" ruling (C131/12) may affect the quality of informationon the internet. Built and published a weebely free website to illusrtate and draw out findings.

  What is the ability to protect ip referred to as

What is Web Technology? Define and provide two examples of web technology and where is has been implemented.

  Work for gto broadband industries

You work for GTO Broadband Industries, a business that offers rural broadband Internet service and network server management. One of your jobs at the company is to present the company's services to local government and community meetings. Your b..

  Describe three of your favorite features of word

Each feature you describe should be a two to three sentence paragraph. b. The letter should be free of spelling and grammar errors.

  Own a consulting company that designs installs

Assume you own a consulting company that designs, installs, and maintains wide area networks. You currently have two companies requesting bids for their wide area networks to be installed. You must provide all of the relevant information to the..

  Explain each of the columns in the data

The sample above shows all three of the types of input that will be found in our tests. All the input will start with a header line like the one at the top of the input and it should be ignored. Let me explain each of the columns in the data

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