Answer:
%Open the file.
fID = fopen('parts_inv.dat');
%Read from the file.
data = fscanf(fID,'%d\t%f\t%d',[3,inf]);
%Close
fclose(fID);
%Restore the data.
data = data';
%Get the size
[rs, cs] = size(data);
%Set value.
invCost = 0;
%Loop
for rw = 1 : rs
%Find cost
invCost = invCost + (data(rw, 2) * data(rw, 3));
%Loop end
end
%Display the cost.
fprintf('Total cost: %4.2f\n\n', invCost);
Explanation:
Answer: A) 2 B) 4 C) 1
Explanation:
The Electric field from a parallel-plate capacitor is given by:
A) E=Q/(L^2 * ε0) so if we put a charge double the final electric field is double that the original.
B) from the above expression for the electric field, If the size of the plate is double, then the E final is four times weaker that the original.
C) If the distante between plates is doubled the final electric field is the same that initial.
Answer: At that moment, all the baseball's kinetic energy has been converted to potential energy.
Explanation: I took the test
Approximate the instantaneous velocity by computing the average velocity of the car over the interval [1.95, 2.05] (i.e. the interval centered at <em>t</em> = 2 s with length 0.1 s).
By definition, average velocity is given by
<em>v</em> = ∆<em>x</em> / ∆<em>t</em>
So we have
<em>v</em>(2 s) ≈ (<em>x</em>(2.05 s) - <em>x</em>(1.95 s)) / (0.1 s) ≈ 13.94 m/s