l. The volume V of a hollow sphere with inner radius r and outer radius R is 1 (
ID: 665070 • Letter: L
Question
l. The volume V of a hollow sphere with inner radius r and outer radius R is 1 (R Suppose you have one hollow sphere with inner and outer radii 0.75m and 1.2m, and a second with inner and outer radii 1.6ft and 2.1ft, and a third sphere with an inner radius of 3.1 yards and an outer radius of 3.2 yards. Your goal is to keep increasing the size of the spheres until the sum of the material needed to build all three spheres is greater than 50 cubic meters. Increase both the inner and the outer radii by 0.1 meters repeatedly (using a loop until the sum of the volume of material for all three spheres is greater than 50 cubic meters Print out the largest and smallest individual final volumes. Your answer should be in cubic meters. Format your answer to two decimal places. Answers not using a loop will receive no credit. EXTRA CREDIT sing if statements, print out the middle volume as well. This will get no credit if the answer is simply typed in. The program must automatically determine the location and display the answer Self check: Final volumes are (largest xx 85, (smallest 5.x6, and (middle) xx.1x cubic metersExplanation / Answer
calculate the weight of a sphere
diameter = 10.2;
thick = input(‘enter thickness of sphere ’);
density = 1.25;
Rout = diameter/2;
Rin = diameter/2 - thick;
Volume = 4/3*pi*(Rout^3-Rin^3);
weight = density*Volume;
disp(‘the sphere’’s weight is= ’);
disp(weight)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.