Compsci 06/101, Spring 2012, Lab 8
By entering your name/net-id below you indicate you are present for Lab 8
to answer these questions and that you were part of
the process that resulted in answers being turned in.
Name: ______________ Net id: _____________ || Name: ______________ Net id: _____________
Name: ______________ Net id: _____________ || Name: ______________ Net id: _____________
- In the function
get_max_price above, why is
the expression s[1] used to access the price?
- Write your code for
get_date_of_max_price here:
- Write a getter function to return the number of shares traded when
passed a tuple.
- Write your code for
plot_prices here:
- From looking at the graph in
plot_price_vs_average, how many
times
did the stock GOOG beat its 10-day average by more than 20 dollars?