--- a/templates/drumb.scala Wed Nov 08 13:58:11 2017 +0000
+++ b/templates/drumb.scala Wed Nov 08 15:45:33 2017 +0000
@@ -11,14 +11,23 @@
"DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP")
-// (1) The function below should obtain the first trading price
-// for a stock symbol by using the query
+// (1.a) The function below takes a stock symbol and a year as argument.
+// It should read the corresponding CSV-file and read the january
+// data from that year. The data should be collected in a list of
+// strings for each line in the CSV file.
+
+//def get_january_data(symbol: String, year: Int) : List[String] = ...
+
//
// http://ichart.yahoo.com/table.csv?s=<<symbol>>&a=0&b=1&c=<<year>>&d=1&e=1&f=<<year>>
//
// and extracting the first January Adjusted Close price in a year.
-
-//def get_january_data(symbol: String, year: Int) : List[String] = ...
+//
+// (1.b) From the output of the get_january_data function, the next function
+// should extract the first line (if it exists) and the corresponding
+// first trading price in that year as Option[Double]. If no line is
+// given
+//
//def get_first_price(symbol: String, year: Int) : Option[Double] = ...