By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,385 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,385 IT Pros & Developers. It's quick & easy.

Stock Exchange problem by C language

P: 1
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. Use 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 multi linked list.

The first logical list should be ordered on the stock code. The second logical list 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 each logical list forward or backward (a total of four options). Each display should contain an appropriate heading and column captions.

Prepare a list of your input data and a printout of each display option.
4 Weeks Ago #1
Share this Question
Share on Google+
1 Reply

dev7060
Expert 100+
P: 333
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. Use 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 multi linked list.

The first logical list should be ordered on the stock code. The second logical list 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 each logical list forward or backward (a total of four options). Each display should contain an appropriate heading and column captions.

Prepare a list of your input data and a printout of each display option.
And what's your question?
4 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.