question archive CS 3450 — Design Patterns Program 2 Date Due: See Syllabus The Chicago Sun-Times reports stocks of local interest to Chicagoans

CS 3450 — Design Patterns Program 2 Date Due: See Syllabus The Chicago Sun-Times reports stocks of local interest to Chicagoans

Subject:Computer SciencePrice: Bought3

CS 3450 — Design Patterns Program 2
Date Due: See Syllabus
The Chicago Sun-Times reports stocks of local interest to Chicagoans. Write a LocalStocks object that "monitors" local stock activity as it is reported. You will simulate a live feed by reading snapshots from the file ticker.dat (details below). Several periodic custom reports of the stock data provided by your LocalStocks object are required, as follows:
I. A report that displays the average of all local stock prices of each snapshot, along with the time the snapshot was taken. 2. A report that displays all companies that have had a price change of 10% or more. List the ticker symbol, the price and the percentage change. 3. A report that displays all fields for the following companies (listed here by ticker symbol): ALL, BA, BC, GBEL, KFT, MCD, TR, WAG As each snapshot is "received" by the LocalStocks object, each report is appended to a unique file associated with the report. Write your code so that a new custom report or a new type of stock data object (like LocalStocks) could be added with minimal code impact. Write each report to its own file. Note that some languages support observers directly (e.g. Java's Observable/Observer classes.) Since you should be learning how observers work, program your own. It's not much code.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions