The program will enquiry from the user a name and four decimal numbers: m, a, b and h. With this information, the program will evaluate moments of inertia (a physical property) for various 3D objects and print them.
· The program will calculate the following moments of inertia for various 3D objects and save the results in variables to be printed later from these variables:
o Moment of Inertia of a rod with length a = ma2 / 12.0
o Moment of Inertia of a rectangular parallelepiped with sides a, b and h with axis in the plane that is parallel to h = m (4a2+b2 ) / 12.0
o Moment of Inertia of a circular cylinder with radius a and height h perpendicular to the cylindrical axis = m (h2+3a2 ) / 12.0
o Moment of Inertia of a hollowed circular cylinder with radii a and b, and height h about an axis on a diameter at one end = m (3a2+3b2 +4h2) / 12.0
o Moment of Inertia of a hollowed sphere with
radii a and b about its diameter =
2 m (a5-b5)/( a3-b3) /
5.0
o Moment of Inertia of a hollowed sphere with
radii a and b about an axis tangent to its surface =
2 m (a5-b5)/( a3-b3) /
5.0 + ma2
Example
INPUT
Hi! What is your name?: Ferdinand
Ferdinand, give me a number for the mass in pounds. We are going to
call it m:10
Ferdinand, give me a number for the inner radius. We are going to
call it a:1
now give me a number for the outer radiosu. We are going to call it
b:2
finally, give me a number for the height. We are going to call it
h:10
OUTPUT
Ferdinand, with these numbers we can obtain the following moments
of inertia:
Moment of Inertia of a rod with length 1.0 is
0.8333333333333334
Moment of Inertia of a rectangular parallelepiped with sides 1.0,
2.0, and 10.0 with axis in the plane that is parallel to h is
6.666666666666667
Moment of Inertia of a circular cylinder with radius 1.0, and
height 10.0 perpendicular to its cylindrical axis is
85.83333333333333
Moment of Inertia of a hollowed circular cylinder with radii 1.0
and 2.0, and length 10.0 about an axis on a diameter at one end
is
345.8333333333333
Moment of Inertia of a hollowed sphere with radii 1.0 and 2.0 about
its diameter is
17.714285714285715
Moment of Inertia of a hollowed sphere with radii 1.0 and 2.0 about
an axis tangent to its surface is
27.714285714285715
In: Computer Science
3) Consider information given in the following table.
|
State of the Economy |
Probability |
Return of Stock A |
Return of Stock B |
|
Recession |
0.1 |
2% |
-5% |
|
Normal |
0.3 |
10% |
8% |
|
Boom |
0.6 |
20% |
25% |
a) Calculate the expected return, variance of each stock, and the covariance between the two stocks.
b) If the weights of both stocks are 55% in A and 45% in B, respectively, what are the expected return and variance of the sum of these two stocks?
In: Finance
In The Expanse series of science
fiction novels people live in tunnels in the dwarf planet Ceres.
The planet has been given a spin, so that, according to the novels,
it has a “gravity” of 0.3 g. Assume that this is the value in
tunnels close to the surface at the equator.
i) what is the period of rotation?
ii) what is the value of the “gravity” in a tunnel that is near the
surface but half way between the equator and one of the
poles?
no ceres. is the name of the fictional planet. .
In: Physics
What do these lab values mean?
In: Nursing
#6...
4. How would you make 500 ml of 5 M NaCl?
5. How would you make 1 liter of 2 M sodium citrate?
6. How would you make 1 liter of stock 20X SSC (standard sodium citrate) buffer that is 3 M NaCl, 0.3 M sodium citrate, using the solutions you made in Q4 and Q5 above?
In: Chemistry
1. Two large fixed parallel planes are 12mm apart. The space
between the surfaces is
filled with oil viscosity 0.972 N.s/m2
. A flat thin plate 0.25m2
area moves through the
oil at a velocity of 0.3 m/s. Calculate the drag force:
i. When the plate is equidistant from both the planes, and
ii. When the thin plate is at a distance of 4 mm from one of the
plane surfaces.
In: Civil Engineering
A quality mixture of water is contained in a piston cylinder system at a pressure of 3 bar. The initial volume of the system is 3 m3, and saturated liquid occupies 0.3 m3. Heat is added to the system and the volume is allowed to triple before a stop is reached. The final state of the system is at pressure of 30 bar. If the external pressure is 1 bar determine the followng: (a) The amount of heat added to the system; and (b) the amound of work performed by the system.
In: Mechanical Engineering
bending moment of 4 kN m is found to cause elastic failure of a
solid circular shaft. An exactly similar shaft is now subjected to
a torque T. Determine the value of T which will cause failure of
the shaft according to the following theories:
(a) Maximum principal stress;
(b) Maximum principal strain;
(c) Maximum shear strain energy. ?= 0.3.)
Which of these values would you expect to be the most reliable and
why?
In: Mechanical Engineering
Sally measures the amount of CO2 in a pint soda bottle by weight loss; she shakes the bottle vigorously and then slowly opens the cap, letting the gas escape. Three measurements on Brand X indicate a loss of 2.2 ± 0.2 g of gas, while three measurements on Brand Y shows a loss 2.4 ± 0.3 g. (The ± indicates standard error.) Do Brands X and Y have different amount of CO2?
In: Statistics and Probability
Please answer the three questions below:
1.)
Using the Binomial distribution with n = 9 and p = 0.3,
calculate
| P(x at most 7) = | |
| [three decimal accuracy] |
2.)
Using the Binomial distribution with n = 10 and p = 0.7,
calculate
| P(x ≤ 3) = | |
| [three decimal accuracy] |
3.)
Using the Binomial distribution with n = 7 and p = 0.8,
calculate
| P(x < 7) = | |
| [three decimal accuracy] |
In: Statistics and Probability