Advertisement
kylemsguy

Hurricane Evaluator

Dec 23rd, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # Hurricane Evaluator
  3. # Evaluates a storm according to its wind speed
  4. # Kyle Zhou December 22, 2012
  5.  
  6. speed = input("Enter the wind speed in km/h: ")
  7. speed = int(speed)
  8.  
  9. if speed <= 62:
  10.     print("Tropical Depression")
  11.  
  12. elif speed > 62 and speed <= 118:
  13.     print("Tropical Storm")
  14.  
  15. elif speed > 118 and speed <= 153:
  16.     print("Category One Hurricane")
  17.  
  18. elif speed > 153 and speed <= 177:
  19.     print("Category Two Hurricane")
  20.  
  21. elif speed > 177 and speed <= 208:
  22.     print("Category Three Hurricane")
  23.  
  24. elif speed > 208 and speed <= 251:
  25.     print("Category Four Hurricane")
  26.  
  27. elif speed > 251:
  28.     print("Category Five Hurricane")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement