CompSci 6, Fall 2011, Lab 1

By entering your name/net-id below you indicate you are in lab on September 1, 2, or 5 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: _____________

Installing Python

Examine the code in graphing.py and answer the questions from the lab sheet.
  1. What changes made the plot go from 0 to 20?
    
    
    
    
    
    
  2. What changes were needed to graph y=(x-4)3?
    
    
    
    
    
    
    
    
  3. How many complete cycles of the sine function occur in the range [0, 10]?
    
    
    
    
    
    
    
  4. What do you see with the random function? Why?