Homework

Homework1  is due on 2/29/2016

The formula for computing the final amount if one is earning compound interest is given on Wikipedia as

formula for compound interest

Write a Python program that assigns the principal amount of $10000 to variable n the value 12, and assign to t that the money will be compounded for. Calculate and print the final amount afte t years.

 

Homework2 due on 3/14/16

Write a program to draw this figure, using a function to draw a square  . Assume the innermost square is 20 units per side, and each successive square is 20 units bigger, per side, than the one inside it. (Hint: may use alex turtle methods:  alex.goto(x, y),  alex.penup(), alex.pendown() )

_images/nested_squares.png

Homework 3 due on April 25, 2016

Assign to a variable in your program a triple-quoted string that contains your favorite paragraph of text - perhaps a poem, a speech, instructions to bake a cake, some inspirational verses, etc.Write a function that counts the number of times  the letters ‘e’, 'b', 't', and 's' are found in your text. Your function should print the counted numbers of letters ‘e’, 'b', 't', and 's'  found in the text.