I need the code for the following format pls

The file comprises a list of US stock symbols and their prices from the period 2000-2015. How to write a program that allows:
1- one to read the content of the file and print them on the screen based on the following format:
Date AA AXP BA C CAT DO DIS
1/3/2000 30.5775 37.31873 29.10314 278.3919 16.06518 35.81189 24.30028
1/4/2000 30.71917 35.90964 29.05788 261.3207 15.85869 35.81189 25.72373
1/5/2000 32.49007 34.99756 30.86833 271.826 16.23038 37.43031 26.79132
1/6/2000 32.06505 35.71058 31.18517 284.9577 17.05635 39.39308 25.72373
1/7/2000 31.97061 36.2305 32.0904 283.6446 17.61388 39.46195 25.31704

Once solving that out there will be 3 connected steps required:
2- add a new feature in the program so that only selected stocks are displayed, based in the user selection.
3- next, add another feature that will allow you to display all stocks based on date range.
4- next, add another feature so that the total and average price for each chosen stock is displayed at the bottom.

If examples is needed in option 2,3 and 4, I will submit it

Thanks
I think you should read this first.
http://www.cplusplus.com/forum/beginner/1/
Also please post a small sample of your input file.

Topic archived. No new replies allowed.