thanks Using matlab: Create a program that prompts the user to enter a scalar va
ID: 3774644 • Letter: T
Question
thanks
Using matlab: Create a program that prompts the user to enter a scalar value for the outside air temperature. If the temperature is equal to or above 80 degree F, send a message to the command window telling the user to wear shorts. If the temperature is between 60 degree F and 80 degree F send a message to the command window telling the user that it is a beautiful day. If the temperature is equal to or below 60 degree F, send a message to the command window telling the user to wear a jacket or coat.Explanation / Answer
temp = input('Enter the outside temperature: ');
if temp >= 80
disp('Wear shorts');
elseif temp >= 60
disp('Its a beautiful day');
else
disp('Wear a jacket or a coat');
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.