"
Anna Apostel
Project 1
Feburary 26th, 2014
Purpose: To design a program to draw boxes and an inscribed fibonacci spiral
for an input range
"
import turtle
lolo=turtle.Turtle()
def drawspiral (length):
" Draws quarter circle of a certain diameter
Paramet
Anna Apostel
Project 3: Brownian Motion ad Diffusion Simulation
April 11th, 2014
Brownian motion is a phenomenon used to describe the random movement of
particles in fluid, a stochastic process. In this simulation, we model the random
movements of the par
'
-Anna Apostel
Project 3: Brownian Motion and Diffusion Simulation
April 11th, 2014
Purpose: To model the diffusion of a particle throughout set boundaries
-'
import random
import math
import matplotlib.pyplot as mpl
'
=
Functions
=
'
def RandomWalk (Ste
Anna Apostel
Project 2: Wolves and Moose
March 14th, 2014
The Lotka-Volterra Model is widely used to explain the population dynamics in
predator-prey relationships. In these models, we simplify the rates of growth in decline of
a population by assuming th
'
-Anna Apostel
Project 2: Wolves and Moose
March 14th, 2014
Purpose: To create a program which models the relationship between predator-prey
populations of wolves and moose.
-'
import matplotlib.pyplot as mpl
'
Part 1
-'
def PP (preyPop, predPop, dt, mon
'
Anna Apostel
Project 4: Recursion Pattern - Complex Pattern
April 25th, 2014
Purpose: To create a complex drawings with using recursive function
This function uses the following grammar to draw the Sierpinski gaskey:
Fr = right edge
Fl = left edge
- = r
'
Anna Apostel
Project 4: Recursive Pattern - Tree
April 25th, 2014
Purpose: To create a recursive pattern capable of drawing a tree using turtle.
This function uses the following grammar to draw an edge rewriting tree:
F = edge
- = right turn
+ = left tu
#
#Anna Apostel#
#April 8th, 2014#
#Homework 6#
#
'
-imports
-'
import random
import matplotlib.pyplot as mpl
'
-functions
-'
def RandoValues1 (NumberofValues):
'
This functions generates a list of random values from -5 to 5 inclusive.
inputs:
NumberofVal
#
#Anna Apostel#
#March 31st, 2014#
#Homework 5#
#
'
-imports
-'
import random
'
-functions
-'
def Grade (numericalgrade):
'
This function convert the numerical grade of the student in thier
corresponding letter grade.
input:
numerical grade of the studen
'
* Anna Apostel; Febuary 24, 2014 *
hw3.py
This homework assignment provides practice for iteration using for and while
loops.
'
import random
# Problem1: Define a function to compute n! using a for/range loop.
function
# factorial1.
Name your
def factor
#Anna Apostel
#Feburary 10, 2014
#Homework Assignment 2
import turtle
import math
'
=
The following section is where you will add code for the nine functions
specified in hw2. You should probably add them one at a time and test each
one as you go
=
'
def
'
Anna Apostel and Rory McGinnis
Project 5: Yellowstone Park Wolf Reintroduction Data Analysis
May 5th, 2014
Purpose: To anaylize the frequency of wolf visits at the locations of the
individual radio towers around yellowstone park to determine location
pr
CS109
Project 2: Voting Analysis
1. This project is to be completed individually. You should treat this project as a take-home exam. The work you complete should solely be a reflection of your own effort. Specifically, do not consult with other students o
CS109
Project 1: Fibonacci Spirals
The main goal of this project is to draw a Fibonacci Spiral such as the one
shown below. The Fibonacci numbers, Fibonacci Spirals, and the associated Golden
Ratio show up frequently in the natural world. This kind of pro