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: _____________

  1. In the function get_max_price above, why is the expression s[1] used to access the price?
    
    
    
    
    
    
    
  2. Write your code for get_date_of_max_price here:
    
    
    
    
    
    
    
    
  3. Write a getter function to return the number of shares traded when passed a tuple.
    
    
    
    
    
  4. Write your code for plot_prices here:
    
    
    
    
    
    
    
    
    
    
    
    
  5. 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?