% Transportation.m

% Get the user input
distance = input('How many miles from school do you live? ');
raining  = input('Is is raining (1-yes and 0-no) ? ');

% Determine the mode of transportation to get to school
if distance > 10
    disp('take the bus');
elseif distance > 1
    if raining == 1
        disp('take the bus');
    else
        disp('ride your bike');
    end
else
    disp('walk to school');
end