function V = tank(R,d)
V = pi*R.^2.*(d-R) + (2/3)*pi*R.^3;
end
%save the above function and run the following script
V = zeros(1,length(d));
R = [1.5 1.25 1.75 1.25];
d = [1.2 1.75 1.74 3.76];
for i=1:length(d)
if d(i)<3*R(i)
V(i) = tank(R(i),d(i));
else
disp('overtop')
end
end
please rate
2R R 1.25 IR 1.50 Id 1.20 1.75 1.74 1.25 3.76 1.75 Use decisional structures to...