Application: The program reads initially reads Dow Jones Industrial Average closing averages from a file containing dates and closing averages. The program then prompts for an input date.
-
If the stock exchange was open on that date, the closing average is printed
-
If date is later than the last date read in from the file, a message is printed and the last recorded date and closing average are printed.
-
Otherwise, a message is printed that the stock exchange was closed for the input date, then prints the next recorded date and its closing average.
Data Structure to store the file data?
Solution using this data structure