Today the odometer on my 98 Maxima changed over to 300,000 miles. Given to me by my dad in January of 2009, I have put about 100,000 of those miles on it, while he put about 200,000 of those miles on it. Jerry named the car “Max”.
February 23, 2012
Niagara Falls
This panoramic photograph of Niagara Falls was taken by James Blakeway. The waterfalls are located on the Niagara River in western New York State and southeastern Ontario. Niagara Falls consists of two waterfalls: the Horseshoe Falls on the right of the photograph which is on the Canadian side of the border, and the American Falls to the left which is on the American side.
February 19, 2012
San Francisco, California
This panoramic photograph of San Francisco was taken by James Blakeway. It features the world renowned Golden Gate Bridge with downtown San Francisco in the distance across San Francisco Bay. The Golden Gate Bridge, completed in 1937, remains one of the most recognized bridges in the world. Visible downtown are a number of unique landmarks including the Transamerica Building with its pyramid shape and Coit Memorial tower on Telegraph Hill.
February 17, 2012
February 16, 2012
Project Euler – Problem # 2 – Solved with Java & Python
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
One Possible Solution: Java
public class Problem2 {
public static void main(String args[]){
int sum = 0;
int a = 0;
int b = 1;
int c = a + b;
while (c < 4000000){
if (c % 2 == 0){
sum = sum + c;
}
a = b;
b = c;
c = a + b;
}
System.out.println(sum);
}
}
One Possible Soulution: Python
# Python version = 2.7.2
# Platform = win32
def fib(n):
"""Determines the sum of the even numbers in the fibonacci sequence
up to value n"""
thesum = 0
a, b = 0, 1
while a < n:
if a % 2 == 0:
thesum = (thesum + (a))
a, b = b, a + b
return thesum
def main():
"""The main program - calls the fib function and prints the value
returned from the function --> x"""
x = fib(4000000)
print x
if __name__ == '__main__':
main()






