Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I know how to code but do not know what the equations would be. Below is what I currently have: function [height] = mySpheresInCylinder(D,N,d) %
I know how to code but do not know what the equations would be. Below is what I currently have:
function [height] = mySpheresInCylinder(D,N,d)
% D is the diameter of the cylinder
% N is the number of balls being droppied in the cylinder
% d is the diameter of the balls that are being dropped
VolumeOfBalls = N*((4/3)*pi*(d/2)^3);
height =
Function 3: Determine the change in height of water in a cylindrical container with diameter D when N number of spherical balls are dropped into the container, each with diameter d. e. There are at least four assert () function statements required. f. Requirement: use Function 1 from this Lab in this new function. g. Assumptions: a. All of the spheres drop to the bottom of the tank b. There is enough water in the tank that all of the spheres are fully submerged. h. Check: v. [ height ]= mySpheresInCylinder (10,60,2) height =3.2000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started