"""
CSCI 145 Day 5 - conditionals

Part 1: Predict what each snippet prints. Then uncomment the code
one section at a time and run the file to check your answers.

Part 2: Fill in the two functions below using if/elif/else (and, for
the bonus, a logical operator). Test them with the print statements
at the bottom once you're done.
"""


# ---------- Part 1: predict, then check ----------

# --- snippet A ---
# x = 7
# if x % 2 == 0:
#     print("even")
# else:
#     print("odd")

# --- snippet B ---
# score = 72
# if score >= 90:
#     print("A")
# elif score >= 80:
#     print("B")
# elif score >= 70:
#     print("C")
# else:
#     print("below C")

# --- snippet C ---
# x = 0
# if x > 0:
#     print("positive")
# if x == 0:
#     print("zero")
# print("done")


# ---------- Part 2: write the code ----------

def classify_temperature(temp):
    """
    Return a description of the weather based on temperature (Fahrenheit).

    Params: temp (int or float) -- the temperature in Fahrenheit
    Returns (str):
        "freezing"  if temp < 32
        "cold"      if 32 <= temp < 50
        "mild"      if 50 <= temp < 70
        "warm"      if 70 <= temp < 85
        "hot"       if temp >= 85
    """
    # your code here


def classify_temperature_and_wind(temp, wind):
    """
    Like classify_temperature, but also takes a wind speed (mph) and
    returns "dangerously cold" instead of "freezing" or "cold" when
    the temp is less than 50 and wind speed is 20 mph or higher.
    Otherwise, returns exactly what classify_temperature(temp) returns.

    Params:
        temp (int or float) -- the temperature in Fahrenheit
        wind (int or float) -- the wind speed in mph
    Returns (str): a weather description, as above
    """
    # your code here


print(classify_temperature(20))
print(classify_temperature(45))
print(classify_temperature(60))
print(classify_temperature(78))
print(classify_temperature(90))

print(classify_temperature_and_wind(25, 25))
print(classify_temperature_and_wind(25, 5))
