Stock trader (customer): I want to be able to see a set of derived data for my portfolio. You: Where is your portfolio stored? Stock trader: I don''t know! It''s in my software somewhere; I think it saves a file to my disk. You: Okay, and what do you want calculated? Stock trader: The open price for the day, the high for the day, the low for the day, the close price for the previous day, and how much I''ve made on that stock. You: Hold on. That''s too much for me to do at one time; let''s go through those one by one, first the open price for the day. Stock trader: Yes, that''s the first price that the stock gets quoted at after the market opens at 9 a.m. You: So, the high for the day is the highest price the stock is quoted at from the time the market opens till it closes? Stock trader: Yes, the market closes at 5 p.m. You: And the low is the lowest price between open and close? Stock trader: Exactly. You: The close for the previous day? Is that the price at 5 p.m.? Stock trader: Pretty much. It''s the last quoted price before the market closes. You: And the last one was how much you''ve made on the stock? Stock trader: Yes. My software tells me how much of a stock I''ve got and how much I paid for it, so you can use that information to work out how much I''ve made, or lost, on the stock. You: Okay, I''ll have to work out how to get that information from your software. Stock trader: Great. Well, now you know what I want, tell me how long will it take and how much it will cost me. You: Give me an hour and I''ll get back to you with some estimates. |