Project –6Title: Stock Exchange Information BaseDescription: Companies and people often buy and sells stocks. Often they buy the same stock for different prices at different times. Say a person owns...

Project –6Title: Stock Exchange Information BaseDescription: Companies and people often buy and sells stocks. Often they buy the same stock for different prices at different times. Say a person owns 1000 shares a certain stock (such as Checkpoint), she may have bought the stock in amounts of 100 shares over 10 different times with 10 different prices. In this assignment, you will be using a queue for storing data for FIFO accounting You should use an array based implementation for your queue based implementation or a linked list for implementing your queue. Your queue should have records with the following fields: The name of the stock (a string or int), the number of shares of a stock (an int), the purchase price (can be a decimal).You can assume that the first element of the structure is the security bought first, the second was bought second, etc. The user should be able to enter information about various stocks, the amount of shares, and the price. The user can then enter a query about a certain stock and the cost according to the FIFO accounting methods for a certain number of shares. The following could be your menu: Press 1 to enter a new stock Press 2 to find the LIFO and FIFO price for a stock. If 1 is pressed, the user needs to enter the stock symbol, and the number of shares, and the price. If 2 is pressed, the user needs to enter the stock symbol being queried and the number of shares in question. Modules: 1. Menu driven Function 2. Creation of Stock Information 3. Query based on input
Nov 25, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here