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