--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/marking1/output Sat Feb 02 01:21:43 2019 +0000
@@ -0,0 +1,143 @@
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_january_data("GOOG", 1980) == List()
+ get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
+ --> success
+ get_first_price("GOOG", 1980) == None
+ get_first_price("GOOG", 2010) == Some(311.349976)
+ --> success
+ get_prices(List("BIDU"), 2004 to 2008) ==
+ List(List(None), List(None), List(Some(6.35)),
+ List(Some(12.241)), List(Some(38.188)))
+
+ get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
+ List(List(Some(311.349976), Some(20.544939)),
+ List(Some(300.222351), Some(31.638695)),
+ List(Some(330.555054), Some(39.478039)))
+ --> success
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_january_data("GOOG", 1980) == List()
+ get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
+ --> success
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_january_data("GOOG", 1980) == List()
+ get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
+ --> success
+ get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) ==
+ List(List(Some(-0.03573992567129673), Some(0.539975124774038)),
+ List(Some(0.10103412653643493), Some(0.24777709700099845)))
+
+ get_deltas(get_prices(List("BIDU"), 2004 to 2008)) ==
+ List(List(None), List(None),
+ List(Some(0.9277165354330709)), List(Some(2.119679764725104))))
+ --> success
+Overall mark for CW 6, Part 3
+2
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_delta(None, None) == None
+ get_delta(Some(100.0), None) == None
+ get_delta(None, Some(50.0)) == None
+ get_delta(Some(100.0), Some(50.0)) == Some(1.0)
+ --> success
+ get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) ==
+ List(List(Some(-0.03573992567129673), Some(0.539975124774038)),
+ List(Some(0.10103412653643493), Some(0.24777709700099845)))
+
+ get_deltas(get_prices(List("BIDU"), 2004 to 2008)) ==
+ List(List(None), List(None),
+ List(Some(0.9277165354330709)), List(Some(2.119679764725104))))
+ --> success
+Overall mark for CW 6, Part 3
+2
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_delta(None, None) == None
+ get_delta(Some(100.0), None) == None
+ get_delta(None, Some(50.0)) == None
+ get_delta(Some(100.0), Some(50.0)) == Some(1.0)
+ --> success
+ get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) ==
+ List(List(Some(-0.03573992567129673), Some(0.539975124774038)),
+ List(Some(0.10103412653643493), Some(0.24777709700099845)))
+
+ get_deltas(get_prices(List("BIDU"), 2004 to 2008)) ==
+ List(List(None), List(None),
+ List(Some(0.9277165354330709)), List(Some(2.119679764725104))))
+ --> success
+Overall mark for CW 6, Part 3
+2
+Below is the feedback and provisional marks for your submission
+for assignment 6 Advanced Part 3. Please note all marks are provisional until
+ratified by the assessment board -- this is not an official
+results transcript.
+
+drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
+ --> success
+drumb.scala runs?
+ --> success
+ get_delta(None, None) == None
+ get_delta(Some(100.0), None) == None
+ get_delta(None, Some(50.0)) == None
+ get_delta(Some(100.0), Some(50.0)) == Some(1.0)
+ --> success
+ get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) ==
+ List(List(Some(-0.03573992567129673), Some(0.539975124774038)),
+ List(Some(0.10103412653643493), Some(0.24777709700099845)))
+
+ get_deltas(get_prices(List("BIDU"), 2004 to 2008)) ==
+ List(List(None), List(None),
+ List(Some(0.9277165354330709)), List(Some(2.119679764725104))))
+ --> success
+ val ds = get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012))
+ yearly_yield(get_deltas(ds, 100, 0) == 125
+ yearly_yield(get_deltas(ds, 100, 1) == 117
+ --> success
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) == 100
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) == 27
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) == 42
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254
+ investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349
+ --> success
+Overall mark for CW 6, Part 3
+4