diff -r 9471c3b7ea02 -r de59aa20a1dc main_testing1/drumb.scala --- a/main_testing1/drumb.scala Mon Nov 08 01:03:09 2021 +0000 +++ b/main_testing1/drumb.scala Mon Nov 08 01:16:13 2021 +0000 @@ -1,4 +1,4 @@ -// Core Part 6 about a really dumb investment strategy +// Main Part 1 about a really dumb investment strategy //===================================================== @@ -6,7 +6,7 @@ // > scala -d drumb.jar drumb.scala -object CW6b { +object M1 { //two test portfolios @@ -167,17 +167,30 @@ - -investment(List("AAPL"), 2000 to 2001, 100) -val aapl_prices = get_prices(List("AAPL"), 2000 to 2002) -val aapl_deltas = get_deltas(aapl_prices) - //test cases for the two portfolios given above -//println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100)) -//println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100)) + println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100)) + println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100)) + } + + + + + + + + + + + + + + + + +