335307 stock exchange program

In Progress Posted Jul 15, 2009 Paid on delivery
In Progress Paid on delivery

A small stock exchange provides an online query system for its customers. Each stock traded on the exchange has a unique integer code that ranges from 1000 through 5999. The system maintains the following data on each stock:

1817 12.34 +0.16 17.89 9.21

1818 0.11 [url removed, login to view] 4.32 0.05

1819 34.89 nc 21.50 18.76

The fields are stock number, current price, change, 52-week high, and 52-week low. The change field indicates the amount that the stock's price has changed since the last trading day; so, for example, stock 1817's price has gone up $0.16 since the last trading day. The entry nc means "no change".

Data are kept in five separate files. Stocks with numbers from 1000 to 1999 are in File 1, those from 2000 to 2999 in File 2, and so on. When the user enters a stock number, the system first determines the appropiate file and then prints the record of the stock. The system allows the user to ask about as many stocks as he or she wishes. Assume that the records in each file are sorted by stock number.

C Programming Odd Jobs

Project ID: #2081119

About the project

Remote project Active Jul 11, 2012