Answer:
%Program prompts user to input vector
v = input('Enter the input vector: ');
%Program shows the value that user entered
fprintf('The input vector:\n ')
disp(v)
%Loop for checking all array elements
for i = 1 : length(v)
%check if the element is a positive number
if v(i) > 0
%double the element
v(i) = v(i) * 2;
%else the element is negative number.
else
%triple the element
v(i) = v(i) * 3;
end
end
%display the modified vector
fprintf('The modified vector:\n ')
disp(v)
Answer:
Condition A
Heat flux is 1400 W/M^2
Condition B
Heat flux is 12800 w/m^2
Explanation:
Given that:
is given as 30 degree celcius
condition A
Air temperature = - 5 degree c
convection coefficient h = 40 w/m^2. k

condition A
water temperature = 10 degree c
convection coefficient = 800 w/m^2.k

STP stands for standard temperature pressure and NTP stands for normal temperature pressure