Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A tire company is testing a new rubber composite to put on their new high speed

ID: 2990603 • Letter: A

Question

A tire company is testing a new rubber composite to put on their new high speed performance tires. Several prototypes were tested, any cars unable to reach a speed greater than 100 mph are considered a failure. The table below summarizes the results of the test. The tests were recorded in Europe and are in units of km/h. Write a MATLAB program using a for loop that converts each test result to mph and determine if the test was a success or failure. Store every successful test in an array.

Test #

Result

Units

1

182

km/h

2

127

km/h

3

152

km/h

4

197

km/h

5

179

km/h

6

146

km/h

7

134

km/h

8

137

km/h

9

105

km/h

10

151

km/h

Test #

Result

Units

1

182

km/h

2

127

km/h

3

152

km/h

4

197

km/h

5

179

km/h

6

146

km/h

7

134

km/h

8

137

km/h

9

105

km/h

10

151

km/h

Explanation / Answer

a = [182,127,152,197,179,146,134,137,105,151];
b = ones(1,1);
k=1;
for i=1:10;
    if a(i)./1.609>100     %checking if >100 mph
       b(k)=a(i);          %storing successful tests
       k=k+1;
    end
end
disp(b);   %displaying successful tests

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote