Exercise 8.9

if (wind <= 4){
    chilly = temp;
    }

else if (wind > 4) {
    if (temp <= 45){
       chilly = a - (b + c*Math.sqrt(wind) - d*wind)*(a - temp)/e ;
       }
    }

else if (wind >4) {
    if(temp > 45){
        chilly = 1.6*temp-55;
        }
    }

return chilly;


Efficient if/else Statements

if (wind <= 4){
    chilly = temp;
    }

else {
    if (temp <= 45){
       chilly = a - (b + c*Math.sqrt(wind) - d*wind)*(a - temp)/e ;
       }
    else {
        chilly = 1.6*temp-55;
        }
    }

return chilly;