Write a program to process stock data

Assignment Help Basic Computer Science
Reference no: EM13936144

Write a program to process stock data. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (XXX.XX), shares held, and current price. Sue the internet or your local paper to gather data on at least 20 stocks.
As each stock is read, insert it into a doubly linked list. The first logical list should be ordered on the stock code. The second should be ordered on the gain or loss for the stock. Gain or loss is calculated as the current value of the stock (shares held times current price) minus the amount invested. Include at least one loss in your test data.

After building the lists, display a menu that allows the user to display either logical list forward or backward (a total of four options). Each display should contain an appropriate heading and column caption.
The program should be written in the below three languages:
Fortran, Pascal and Ada

Reference no: EM13936144

Questions Cloud

Compute the measures of central tendency : What kinds of things might happen if a user group and an information systems group worked for a few months on a new health record system without some clear project management - Why is it important to know whether a research article is from a peer-r..
Customers needs and buying behaviour : PESTLE analysis UK hotel sector with particular note on Radisson Blu in LONDON Conduct secondary market research to collect appropriate market data and information to provide evidence of market demand, customers' needs and buying behaviour to just..
Analyze the marketing strategy (4 p) of the product : Student are required to select a product (for example: shampoo, car or food) from the brand given from a company and analyze the MARKETING STRATEGY (4 P'S) of the product.
Construct a contingency graph for a short straddle : Currency option contingency graphs.  The current spot rate of the Singapore dollar (S$) is £0.34. Construct a contingency graph for a short straddle using these options.
Write a program to process stock data : Write a program to process stock data. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (XXX.XX), shares held, and current price. Sue the internet or your local paper to gather..
Describe the vulnerability that the attack exploits : Describe the vulnerability that the attack exploits, including how or why the vulnerability exists, what versions of software are vulnerable. Include a technical overview of the category of vulnerability (for example, command injection, buffer ove..
What is maggies total profit from a long straddle position : What is Maggie's total profit or loss from a long straddle position? What is Maggie's total profit or loss from a long straddle position if the value of the dollar is 0.60 euro at option expiration?
Describe the nature of school counselor-student relationship : Describe the nature of the school counselor-student relationship and its relative importance, both according to your view and the perspective of your chosen theory(ies). (Be specific with regard to your interest in Elementary, Middle/Jr. High Scho..
What will be the equilibrium price and output : A monopoly produces widgets at a marginal cost of $10 per unit and zero fixed costs. It faces an inverse demand function given by P = 50 - Q. Which of the following is the marginal revenue function for the firm?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Big-oh definition for a function

By using the definition of Big-Oh show that if g1(n) is in O(f(n)) and g2(n) is in O(f(n)), then the sum g1(n) + g2(n) is in O(f(n)).

  Explaining the features of ms powerpoint

Explaining the features of MS PowerPoint

  Responsibilities of job when designing digital portfolio

Do you think that your digital portfolio should depend on the job, title, or industry you are planning or working on getting into? Do task and responsibilities of a specific job matter when designing your digital portfolio?

  In linux how do i remove from a file all the words

In linux how do I remove from a file all the words containing the characters "mrte'ng"

  Write code that fills an array with each set of numbers

Write code that fills an array with each set of numbers below. a. 1 2 3 4 5 6 7 8 9 10 b. 0 2 4 6 8 10 12 14 16 18 c. 1 4 9 16 25 36 49 64 81 100 d. 0 0 0 0 0 0 0 0 0 0 e. 1 4 9 16 9 7 4 9 11

  What is the percentage of time processor is blocked

Consider a device of 50MBPS is operated in cycle stealing mode of DMA as and when 8byte word is available. It is transferred into the memory in 40ns. What is the percentage of time processor is blocked due to DMA.

  Open a new database in microsoft access

Open a new database in Microsoft Access

  Explaining records are stored and accessed on storage medium

Which of the given correctly explains a way in which data records are stored and accessed on storage medium?

  Write a class encapsulating the concept of a rational number

Write a class encapsulating the concept of a rational number, assuming a rational number has the following attributes: an integer representing the numerator of the rational number another integer representing the denominator of the rational number

  The centroid and the cluster

Problem 1.  For the following set of points, the initial centroid, and the cutoff distance of 4, do the following operations: 1) find the clusters; 2) update the centroid value; 3) find the distance between the centroid and the cluster, and update th..

  Simple jquery question

Simple jQuery question

  Using the scenario of the adventure travel club found

Complete the following tasks: Using the scenario of the Adventure Travel Club found in the lecture, briefly define each area of your web site plan, Target Audience, Flowchart, and Storyboard. Following best practices, you may be creative in your own ..

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