We have moved to @ Placement Papers Hub !! Visit our new website here for more..

Writing brief Scripts starting each Script with a request for input (using input) to Evaluate the function h(T) using if-else statement, where h(T) = (T – 10) for 0 < T < 100 = (0.45 T + 900) for T > 100. Exercise: Testing the Scripts written using (A). T = 5, h = -5 and (B). T = 110, h = 949.5


Answers to Writing brief Scripts starting each Script with a request for input (using input) to Evaluate the function h(T) using if-else statement, where
h(T) = (T – 10) for 0 < T < 100
        = (0.45 T + 900) for T > 100.
Exercise: Testing the Scripts written using (A). T = 5, h = -5 and (B). T = 110, h = 949.5


F=input('enter the Temparature ');
if(F>0 & F<100);
    h=(F-10);
    disp(h);
elseif(t>100);
    h=(0.45*F-100);
    disp(h);
else
    disp('entere the numb grtern than 0');
end