in matlab
It takes approximately 11,000 liters (3,000 gallons) [BBC] to make a pair of jeans. To make a shirt it takes about 2700 liters (713 gal), and for socks I assume it is shirt/12 which is 225 Liter. I assume everyone has at least 7 extra jeans, 12 extra shirts, and 1 extra sock.
I have provided both the text and the screenshot for your better understanding. The screenshot also has some comments for your help. Please note that these are script files which are to be saved as "function_name.m" in your MATLAB root directory.
pilot.m
function pilot()
%SUBPART A
water = [11000;2700;225]; %storing water amount in liters
extra = [7;12;1]; %storing item number
tot = zeros(3,1); %column 3 initialize
for i = 1:3
tot(i) = water(i) * extra(i);
end
disp('Column 3 entries');
disp(tot);
%SUBPART B
amt = sum(tot);
fprintf("Total water used is %d litres\n",amt);
%SUBPART C
tre = amt/2800;
fprintf("Number of avocado trees that can be planted is %d.
\n",floor(tre));
%SUBPART D
vol = amt / 1500;
fprintf("Total volume of room that can be filled with Guacamole is
%.2f %%\n",vol*100/90);
end
OUTPUT
*A humble request* - If you have any doubt, please use the comment section to communicate. Please be a little patient, it is an honest promise I will reply as soon as possible. This will clarify your doubt, and also help me to get better at answering your next questions. At the same time, If my answer helped you, please consider leaving an upvote. I hope you understand my viewpoint. Thank you :)
in matlab It takes approximately 11,000 liters (3,000 gallons) [BBC] to make a pair of jeans....
Matlab Questions (please show what code I need, including any comments, for each of the questions): 1) Initialize two row vectors a and b of arbitrary but equal lengths (pick any length ³3) with random numbers between 0 and 1. Recalling that the dot product between two vectors is a ∙ b = |a||b| cos theta, calculate the angle, theta, between the two vectors (radians or degrees is fine, just state what you used). Note: • You can use built-in inverse...
Read about Cokes strategy in Africa in the article below and discuss the ethics of selling soft drinks to very poor people. Is this an issue that a company like Coke should consider? Africa: Coke's Last Frontier Sales are flat in developed countries. For Coke to keep growing, Africa is it By Duane Stanford Piles of trash are burning outside the Mamakamau Shop in Uthiru, a suburb of Nairobi, Kenya. Sewage trickles by in an open trench. Across the street,...