Ask Visual Basic Expert

Assignment: Visual Basic Program

In this assignment, you will implement an electronic stock trading system. Your system will accept trading orders and based on those orders, it will keep track of pending orders, and execute trades when possible.

1. Database design

Use Microsoft Access to design a database for the stock trading system. 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.

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, opening price, highest price of the day, lowest price of the day, the closing price, trading volume on that day, and 1 day price change %.

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: where you can find last year's return rate % for each stock. For other stock information, please use the Yahoo! Finance 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.

3. SimpleBroker v1.0: A DataReader Application.

MB v1.0 is a DataReader application for placing stocking trading request. You must use aDataReader 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 fromStocksComboBox, 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 stockquantity (e.g., "BUY-2000"). The list is ordered by the order type first and then by quantity.

5. Placing a new order request:

o The user selects an order type (buy or sell) from another ComboxBox control

(TradeTypeComboBox), and enters a stock quantity to be traded in a TextBox control (QuantityTextBox).

o By clicking a Button control (SubmitButton), add a new stock request record to the database.

4. Bonus questions:

6. Sector selection: Another ComboBox control (SectorsComboBox) should be used to display all sectors in the database. The user starts with selecting a specific sector fromSectorsComboBox. StocksComboBox will then only display those stock stickers in the selected sector.

7. Error handling: Use data validation or exception handling to prevent the following runtime errors from interrupting the program execution:

a. Non-numeric values in QuantityTextBox

b. OleDbException when populating the ListBox and ComboBox controls.

You can get such an exception if your database table is open from Access in the Design View when you try to execute your VB program.

Attachment:- Links.rar

Visual Basic, Programming

  • Category:- Visual Basic
  • Reference No.:- M92341824

Have any Question?


Related Questions in Visual Basic

Please show how to do the belowvisual basic net application

Please show how to do the below: Visual Basic .NET Application - Coding Exercise 1 (Exercise 13, Zak, 2016, p. 347) For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable n ...

Assignment virtual storeuse the concepts and scenario from

Assignment: Virtual Store Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must stor ...

Assignment frans virtual fruit standfrans virtual fruit

Assignment: Fran's Virtual Fruit Stand Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Log ...

Pitch amp game design documentthe assignment is about

Pitch & Game Design Document The assignment is about educational driver for teenagers Assignment Brief: In groups you will: - present a pitch and produce a one sheet - provide a demonstration of your game - produce a hig ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As