Problem solving strategies
Questions
years = input("Enter a number of years and I'll tell you how
many minutes that is ")
years = int(years)
days = years * 365
hours = days * 24
minutes = hours * 60
print(years, "years is ", minutes, "minutes")
How many trees are in the state of Washington?
How many handshakes for all the people in your class?
How many handshakes for all the people in your class?
2 students act it out—1 handshake
3 students — 3 handshakes
4 students — 3 + 3 = 6 handshakes
5 students — 6 + 4 = 10 handshakes
6 students — 10 + 5 = 15 handshakes
7 students — 15 + 6 = 21 handshakes
8 students — 21 + 7 = 28 handshakes
9 students — 28 + 8 = 36 handshakes
10 students — 36 + 9 = 45 handshakes
So, N students = N * (N - 1) / 2
How many trees are in the state of Washington?
Forests cover 52% of the state's land area, mostly west of the North Cascades.
Area of Washington is 184,827 km2
Hence are of forests is approx (52% of total area): 96110 km2
Let's say that tree density is 24000 trees km2 (in the USA).
Then the number of trees is: 96110 km2 x 24000 trees/km2 = 2.306.640.000 trees
Get Answers For Free
Most questions answered within 1 hours.