marking1/drumb.scala
changeset 281 87b9e3e2c1a7
parent 266 ca48ac1d3c3e
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     1 // Main Part about a really dumb investment strategy
     1 // Main Part about a really dumb investment strategy
     2 //======================================================
     2 //======================================================
     3 
     3 
     4 //object CW6b { // for purposes of generating a jar
     4 object CW6b {
     5 
     5 
     6 
     6 
     7 //two test portfolios
     7 //two test portfolios
     8 
     8 
     9 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
     9 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
   165 //test cases for the two portfolios given above
   165 //test cases for the two portfolios given above
   166 
   166 
   167 //println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100))
   167 //println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100))
   168 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100))
   168 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100))
   169 
   169 
   170 //}
   170 }
   171 
   171 
   172 
   172 
   173 
   173