marking1/output
changeset 262 21c69dc3dbf7
parent 261 8997430d9765
child 263 5a16bcb4105e
equal deleted inserted replaced
261:8997430d9765 262:21c69dc3dbf7
     1 Below is the feedback and provisional marks for your submission
       
     2 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
     3 ratified by the assessment board -- this is not an official
       
     4 results transcript.
       
     5 
       
     6 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
     7   --> success
       
     8 drumb.scala runs?
       
     9   --> success
       
    10   get_january_data("GOOG", 1980) == List()
       
    11   get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
       
    12   --> success
       
    13   get_first_price("GOOG", 1980) == None
       
    14   get_first_price("GOOG", 2010) == Some(311.349976)
       
    15   --> success
       
    16   get_prices(List("BIDU"), 2004 to 2008) ==
       
    17        List(List(None), List(None), List(Some(6.35)), 
       
    18             List(Some(12.241)), List(Some(38.188)))
       
    19  
       
    20   get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
       
    21        List(List(Some(311.349976), Some(20.544939)),
       
    22             List(Some(300.222351), Some(31.638695)),
       
    23             List(Some(330.555054), Some(39.478039)))
       
    24   --> success
       
    25 Below is the feedback and provisional marks for your submission
       
    26 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
    27 ratified by the assessment board -- this is not an official
       
    28 results transcript.
       
    29 
       
    30 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
    31   --> success
       
    32 drumb.scala runs?
       
    33   --> success
       
    34   get_january_data("GOOG", 1980) == List()
       
    35   get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
       
    36   --> success
       
    37 Below is the feedback and provisional marks for your submission
       
    38 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
    39 ratified by the assessment board -- this is not an official
       
    40 results transcript.
       
    41 
       
    42 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
    43   --> success
       
    44 drumb.scala runs?
       
    45   --> success
       
    46   get_january_data("GOOG", 1980) == List()
       
    47   get_january_data("GOOG", 2010).head == "2010-01-04,311.349976"
       
    48   --> success
       
    49   get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) == 
       
    50     List(List(Some(-0.03573992567129673), Some(0.539975124774038)), 
       
    51          List(Some(0.10103412653643493), Some(0.24777709700099845)))
       
    52 
       
    53   get_deltas(get_prices(List("BIDU"), 2004 to 2008)) == 
       
    54     List(List(None), List(None),                          
       
    55          List(Some(0.9277165354330709)), List(Some(2.119679764725104)))) 
       
    56   --> success
       
    57 Overall mark for CW 6, Part 3
       
    58 2
       
    59 Below is the feedback and provisional marks for your submission
       
    60 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
    61 ratified by the assessment board -- this is not an official
       
    62 results transcript.
       
    63 
       
    64 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
    65   --> success
       
    66 drumb.scala runs?
       
    67   --> success
       
    68   get_delta(None, None) == None
       
    69   get_delta(Some(100.0), None) == None
       
    70   get_delta(None, Some(50.0)) == None
       
    71   get_delta(Some(100.0), Some(50.0)) == Some(1.0)
       
    72   --> success
       
    73   get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) == 
       
    74     List(List(Some(-0.03573992567129673), Some(0.539975124774038)), 
       
    75          List(Some(0.10103412653643493), Some(0.24777709700099845)))
       
    76 
       
    77   get_deltas(get_prices(List("BIDU"), 2004 to 2008)) == 
       
    78     List(List(None), List(None),                          
       
    79          List(Some(0.9277165354330709)), List(Some(2.119679764725104)))) 
       
    80   --> success
       
    81 Overall mark for CW 6, Part 3
       
    82 2
       
    83 Below is the feedback and provisional marks for your submission
       
    84 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
    85 ratified by the assessment board -- this is not an official
       
    86 results transcript.
       
    87 
       
    88 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
    89   --> success
       
    90 drumb.scala runs?
       
    91   --> success
       
    92   get_delta(None, None) == None
       
    93   get_delta(Some(100.0), None) == None
       
    94   get_delta(None, Some(50.0)) == None
       
    95   get_delta(Some(100.0), Some(50.0)) == Some(1.0)
       
    96   --> success
       
    97   get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) == 
       
    98     List(List(Some(-0.03573992567129673), Some(0.539975124774038)), 
       
    99          List(Some(0.10103412653643493), Some(0.24777709700099845)))
       
   100 
       
   101   get_deltas(get_prices(List("BIDU"), 2004 to 2008)) == 
       
   102     List(List(None), List(None),                          
       
   103          List(Some(0.9277165354330709)), List(Some(2.119679764725104)))) 
       
   104   --> success
       
   105 Overall mark for CW 6, Part 3
       
   106 2
       
   107 Below is the feedback and provisional marks for your submission
       
   108 for assignment 6 Advanced Part 3.  Please note all marks are provisional until
       
   109 ratified by the assessment board -- this is not an official
       
   110 results transcript.
       
   111 
       
   112 drumb.scala does not contain vars, returns, Arrays, ListBuffers etc?
       
   113   --> success
       
   114 drumb.scala runs?
       
   115   --> success
       
   116   get_delta(None, None) == None
       
   117   get_delta(Some(100.0), None) == None
       
   118   get_delta(None, Some(50.0)) == None
       
   119   get_delta(Some(100.0), Some(50.0)) == Some(1.0)
       
   120   --> success
       
   121   get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) == 
       
   122     List(List(Some(-0.03573992567129673), Some(0.539975124774038)), 
       
   123          List(Some(0.10103412653643493), Some(0.24777709700099845)))
       
   124 
       
   125   get_deltas(get_prices(List("BIDU"), 2004 to 2008)) == 
       
   126     List(List(None), List(None),                          
       
   127          List(Some(0.9277165354330709)), List(Some(2.119679764725104)))) 
       
   128   --> success
       
   129   val ds = get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012))
       
   130   yearly_yield(get_deltas(ds, 100, 0) == 125
       
   131   yearly_yield(get_deltas(ds, 100, 1) == 117
       
   132   --> success
       
   133   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) == 100
       
   134   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) == 27 
       
   135   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) == 42 
       
   136   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27 
       
   137   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38 
       
   138   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113
       
   139   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254
       
   140   investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349
       
   141   --> success
       
   142 Overall mark for CW 6, Part 3
       
   143 4