469,573 Members | 1,655 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

Stock Exchange problem by C language

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.
Oct 22 '20 #1
1 2330
dev7060
516 Expert 512MB
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?
Oct 22 '20 #2

Post your reply

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

Similar topics

1 post views Thread by Lorn | last post: by
11 posts views Thread by Bryan | last post: by
2 posts views Thread by Phillip Vong | last post: by
1 post views Thread by Norbert Pürringer | last post: by
reply views Thread by Jeet Disuja | last post: by
3 posts views Thread by Ganesh | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.