Hi, you haven't provided the programing language in which you need the code, I'll just explain how to do it using Python, and you can apply a similar method for any programming language.
Answer:
1. def pyramid_volume(base_length, base_width, pyramid_height):
2. volume = base_length*base_width*pyramid_height/3
3. return(volume)
Explanation step by step:
- In the first line of code, we define the function pyramid_volume and it's input parameters
- In the second line, we perform operations with the input values to get the volume of the pyramid with a rectangular base, the formula is V = l*w*h/3
- In the last line of code, we return the volume
In the image below you can see the result of calling the function with input 4.5, 2.1, 3.0.
Answer:
The velocity in the pipe is 5.16m/s. The pipe diameter for the second fluid should be 6.6 mm.
Explanation:
Here the first think you have to consider is the definition of the Reynolds number () for flows in pipes. Rugly speaking, the Reynolds number is an adimensonal parameter to know if the fliud flow is in laminar or turbulent regime. The equation to calculate this number is:
where is the density of the fluid, is the viscosity, D is the pipe diameter and v is the velocity of the fluid.
Now, we know that Re=2100. So the velocity is:
For the second fluid, we want to keep the Re=2100 and v=5.16m/s. Therefore, using the equation of Reynolds number the diameter is:
Answer:
Frequency =
Wavenumber =
Energy =
Energy = 1.4579 eV
Energy =
Explanation:
As we are given the wavelength = 850 nm
conversion used :
So, wavelength is
The relation between frequency and wavelength is shown below as:
Where, c is the speed of light having value =
So, Frequency is:
Wavenumber is the reciprocal of wavelength.
So,
Also,
where, h is Plank's constant having value as
So,
Also,
So,
Also,
So,