In the MATLAB Command Window, if you type the following commands, what would be the result?

scores = [80 90 50 70 80 60 65 95 70 40];
for i=1:1:10
if scores (i) >60
fprintf('\t %g \t\t\t\t\t PASSING\n', scores (i));
else
fprintf('\t %g \t\t\t\t\t FAILING\n', scores (i))
end
end


80 PASSING
90 PASSING
50 FAILING
70 PASSING
80 PASSING
60 FAILING
65 PASSING
95 PASSING
70 PASSING
40 FAILING

Trades & Technology

You might also like to view...

The E7018 electrode should not be weaved wider than ____ times the electrode diameter because very little shielding gas is produced.

A. one and a half B. two C. two and a half D. three

Trades & Technology

Many interiorscapers ____ the wholesale price of plants and add a bit more to cover the cost of

shipping.

a. triple c. halve b. double d. make use of

Trades & Technology

A wood slab with a thickness of 0.05 m is subjected to a heat flux of 40?W/m2. The left and right surface temperatures of the wood slab are kept at constant temperatures of 40°?C and 20°?C, respectively. What is the thermal conductivity of the wood slab?

What will be an ideal response?

Trades & Technology

The output of a comparator goes LOW when ________

A) the inverting input and non-inverting input voltages are equal B) the non-inverting input voltage is greater than the inverting input C) the invering input voltage is greater thatn the non-inverting input voltage D) the comparator is faulty

Trades & Technology