Questions
Create four classes named: Planet, solarSystem, Earth and Moon, 1. Think how to use inheritance in...

Create four classes named: Planet, solarSystem, Earth and Moon,
1. Think how to use inheritance in three classes
2. solarSystem has
Name, color, Diameter_Miles, dist_From_Sun and perimeter =(float) 3.14*Diameter_Miles;
3. Moon has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun, surface_area = 4*3.14*Radius*Radius;
And volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
4. Planet has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
5. Earth has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
Every class has constructor to initialize the input variables and measurements Method that prints the following:
From the solarSystem Class consider the following inputs: name ="solar System", color="multi", Diameter_Miles=7500000000L, dist_From_Sun =3666000000L
The output should be:
Name Of The solarSystem : solar System
Colour Of The solarSystem : multi
Distance From the Sun : 3666000000 miles
Perimeter of the solarSystem : 2.35500012E10 miles
--------------------------------------
From the Planet Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
From the Earth Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
-----------------
From the Moon Class consider the following inputs: name =" Luna", color=" silvery ", Diameter_Miles=1740L, dist_From_Sun =238900L
The output should be:
Name Of The Moon : Luna
Colour Of The Moon : silvery
Distance From the Mother Planet : 238900 miles
Surface area Of The Moon : 3.8026656E7 km^2
---------------

Exercise: OOP- Inheritance
((((((. java ))))
Create four classes named: Planet, solarSystem, Earth and Moon,
1. Think how to use inheritance in three classes
2. solarSystem has
Name, color, Diameter_Miles, dist_From_Sun and perimeter =(float) 3.14*Diameter_Miles;
3. Moon has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun, surface_area = 4*3.14*Radius*Radius;
And volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
4. Planet has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
5. Earth has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
Every class has constructor to initialize the input variables and measurements Method that prints the following:
From the solarSystem Class consider the following inputs: name ="solar System", color="multi", Diameter_Miles=7500000000L, dist_From_Sun =3666000000L
The output should be:
Name Of The solarSystem : solar System
Colour Of The solarSystem : multi
Distance From the Sun : 3666000000 miles
Perimeter of the solarSystem : 2.35500012E10 miles
--------------------------------------
From the Planet Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
From the Earth Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
-----------------
From the Moon Class consider the following inputs: name =" Luna", color=" silvery ", Diameter_Miles=1740L, dist_From_Sun =238900L
The output should be:
Name Of The Moon : Luna
Colour Of The Moon : silvery
Distance From the Mother Planet : 238900 miles
Surface area Of The Moon : 3.8026656E7 km^2
---------------

In: Computer Science

First, launch the video below. You will be asked to use your knowledge of physics to...

First, launch the video below. You will be asked to use your knowledge of physics to predict the outcome of an experiment. Then, close the video window and answer the question at right. You can watch the video again at any point. 


Suppose we repeat the experiment from the video, but this time we use a rocket three times as massive as the one in the video, and in place of water we use a fluid that is twice as massive (dense) as water. If the new fluid leaves the rocket at the same speed as the water in the video, what will be the ratio of the horizontal speed of our rocket to the horizontal speed of the rocket in the video after all the fluid has left the rocket? (Ignore air resistance.)

In: Physics

In my lab, we conducted an experiment to demonstrate both Hess' Law and the fundamentals of...

In my lab, we conducted an experiment to demonstrate both Hess' Law and the fundamentals of enthalpy via the formation of magnesium oxide. In this experiment, 2 specific sub-reactions were conducted:

1. MgO(s) + 2HCl(aq) > MgCl2(aq) + H2O(l)

2. Mg(s) + 2HCl(aq) > MgCl2(aq) + H2(g)

In these two reactions, different concentrations of HCl were used: the first reaction called for 100mL of 6M HCl, while the second reaction called for 120mL of 6M HCl.

The lab manual says that this is an important distinction. Why is it important that two different concentrations of hydrochloric acid were used for each reaction?

In: Chemistry

"Make a tree diagram to determine the theoretical probability for this experiment: Spin the arrows (not...

"Make a tree diagram to determine the theoretical probability for this experiment: Spin the arrows (not shown) on each of the following three spinners, and note the color where the arrow lands on each spinner. Spinner 1 is divided into two equal sectors, labeled “Red” and “Blue.” Spinner 2 is first divided into two equal sectors. The left is labeled “Green.” The right is then divided into two equal sectors, labeled “Red” and “Blue.” Spinner 3 is divided into three equal sectors, labeled “Red,” “Blue,” and “Green.” Give the sample space for the experiment and the probability of each outcome. What is the probability of getting at least 1 red? What is the probability of getting at least 1 blue?"

In: Statistics and Probability

Part A) 525mL of 1.50M NaCl is added to a beaker containing 378mL of 2.22M AgNO3,...

Part A) 525mL of 1.50M NaCl is added to a beaker containing 378mL of 2.22M AgNO3, resulting in the formation of AgCl precipitate. What is the limiting reactant?

NaCl

AgNO3

AgCl

NaNO3

Part B) How many grams of K2SO4 are in 250mL of 0.11 M K2SO4 solution?

___ g K2SO4

Part C) The reaction of magnesium nitride and water is shown below:

Mg3N2 + 3H2O --> 2NH3 + 3MgO

During a lab experiment, 3.82 g magnesium nitride and 7.73 g water are placed in a reaction flask.

At the end of the experiment, the amount of magnesium oxide produced is 3.60 g.

What is the percent yield of the reaction?

94.5 % yield

78.8 % yield

46.6 % yield

49.4 % yield

In: Chemistry

Design an experiment to find the relationship between the electric force between the two spheres and...

Design an experiment to find the relationship between the electric force between the two spheres and the distance between them. In the space below, describe your experiment, including:

  • What quantity did you vary?
  • What quantities did you hold constant?
  • What quantity did you measure?
  • Which quantities did you plot on your graph, and on which axes?
  • Which Curve Fit gives the best fit for the data?

Describe your process and the relationship you found. In particular, note where the data deviated the most from your curve fit. Why did the data deviate from your curve fit at those locations?

In: Physics

Put the argument into standard form, and then diagram it It is very unlikely that research...

Put the argument into standard form, and then diagram it

It is very unlikely that research using animals will be unnecessary or poorly done. Before an experiment using a vertebrate animal is carried out, the protocol for that experiment must be reviewed by an institutional committee that includes a veterinarian and a member of the public, and during the research the animal’s health and care are monitored regularly. Researchers need healthy animals for study in science and medicine, because unhealthy animals could lead to erroneous results. This is a powerful incentive for scientists to make certain that any animals they use are healthy and well-nourished. Furthermore, research involving animals is expensive, and because funding is limited in science, only highquality research is able to compete effectively for support.

In: Biology

Put the arguments into standard form, and then diagram it It is very unlikely that research...

Put the arguments into standard form, and then diagram it

It is very unlikely that research using animals will be unnecessary or poorly done. Before an experiment using a vertebrate animal is carried out, the protocol for that experiment must be reviewed by an institutional committee that includes a veterinarian and a member of the public, and during the research the animal’s health and care are monitored regularly. Researchers need healthy animals for study in science and medicine, because unhealthy animals could lead to erroneous results. This is a powerful incentive for scientists to make certain that any animals they use are healthy and well-nourished. Furthermore, research involving animals is expensive, and because funding is limited in science, only highquality research is able to compete effectively for support

In: Biology

Put the arguments into standard form, and then diagram it It is very unlikely that research...

Put the arguments into standard form, and then diagram it

It is very unlikely that research using animals will be unnecessary or poorly done. Before an experiment using a vertebrate animal is carried out, the protocol for that experiment must be reviewed by an institutional committee that includes a veterinarian and a member of the public, and during the research the animal’s health and care are monitored regularly. Researchers need healthy animals for study in science and medicine, because unhealthy animals could lead to erroneous results. This is a powerful incentive for scientists to make certain that any animals they use are healthy and well-nourished. Furthermore, research involving animals is expensive, and because funding is limited in science, only highquality research is able to compete effectively for support

In: Biology

You wish to compare four treatments for effectiveness in preventing flu: (1) a flu vaccine, (2)...

You wish to compare four treatments for effectiveness in preventing flu: (1) a flu vaccine, (2) 1 gram of vitamin C per day, (3) an Echinacea pill, (4) a turmeric curcumin complex pill, and (5) a placebo taken daily. (A placebo is a dummy pill which contains no active ingredient and should have no physical effect.)

In clinical experiments involving people, it is strongly recommended that a placebo be included among the treatments. Explain why.

What is an appropriate response variable?

Suppose that 1000 volunteer subjects are available for the study. Draw a diagram showing a

design of your experiment. Clearly indicate where randomization, replication and control are applied in the experiment.

In: Statistics and Probability