Daniel Chesler's CS 107 Computing, Robots, and Python site.
- Email: dchesler18@gmail.com
-
- Cloud Computing Assignment
- HTML portfolio
- Picture Programming Assignment
- Collaborative Research
filename=pickAFile() pic=makePicture(filename) show(pic) w = getWidth(pic) h = getHeight(pic) col=1 while col<w: row=1 while row<h: pixel = getPixel(pic,col,row) setColor(pixel,blue) row=row+1 col=col+3 repaint(pic)
 filename=pickAFile() pic=makePicture(filename) show(pic) w = getWidth(pic) h = getHeight(pic) col=1 while col<w: row=1 while row<h: pixel = getPixel(pic,col,row) setColor(pixel,green) row=row+4 col=col+1 repaint(pic) conditional interest:
principal=input('please enter the principal:') years = input('please enter the number of years')
i=0 while i<years: if i>3: rate=.3 if principal<10000: rate=.1 elif principal>=10000: rate=.2 if principal>50000: rate=.25 if years>3: rate=.3 interest=principal*rate principal=principal+interest i=i+1
print principal
|
Attachments (4)
-
artproject.py - on Apr 21, 2009 12:08 PM by Daniel Chesler (version 1)
1k
Download
-
grayscale.py - on Apr 21, 2009 11:27 AM by Daniel Chesler (version 1)
1k
Download
-
mirror.py - on Apr 21, 2009 11:27 AM by Daniel Chesler (version 1)
1k
Download
-
scorebaord.py - on Apr 21, 2009 11:28 AM by Daniel Chesler (version 1)
1k
Download
|