3.04 · Lab
Conditionals
One decision that depends on two things at once. Walk every combination and make sure each branch says what you meant it to say.
Exercise
Wire a weather decision
Checks itself — try as often as you likeWrite a function called checkWeather that takes two parameters, temperature and isSunny, and returns a string:
"perfect beach weather"iftemperatureis greater than65*and*isSunnyistrue."grab a jacket"otherwise.