Answer:
lastName.compareTo("Dexter")>0
Explanation:
The expression that evaluates to true if the value of variable lastName is greater than the string Dexter is; lastName.compareTo("Dexter")>0.
Answer:
(N-1) × (L/2R) = (N-1)/2
Explanation:
let L is length of packet
R is rate
N is number of packets
then
first packet arrived with 0 delay
Second packet arrived at = L/R
Third packet arrived at = 2L/R
Nth packet arrived at = (n-1)L/R
Total queuing delay = L/R + 2L/R + ... + (n - 1)L/R = L(n - 1)/2R
Now
L / R = (1000) / (10^6 ) s = 1 ms
L/2R = 0.5 ms
average queuing delay for N packets = (N-1) * (L/2R) = (N-1)/2
the average queuing delay of a packet = 0 ( put N=1)
Answer:
a. Heat removal rate will increase
b. Heat removal rate will decrease
Explanation:
Given that
One end of rod is connected to the furnace and rod is long.So this rod can be treated as infinite long fin.
We know that heat transfer in fin given as follows

We know that area

Now when diameter will triples then :





So the new heat transfer will increase by 3 times.
Now when copper rod will replace by aluminium rod :
As we know that thermal conductivity(K) of Aluminium is low as compare to Copper .It means that heat transfer will decreases.
Answer:
Code in MATLab is given as below:
Explanation:
grade = input('Enter the grades as elements of a vector ');
x1 = length(grade);
fprintf('There are %5.2f grades\n',x1);
x2 = mean(grade);
fprintf('The average grade is %5.2f \n',x2);
x3=std(grade);
fprintf('The standard deviation is %5.2f \n',x3);
x4 = median(grade);
fprintf('The median grade is %5.2f \n',x4);