pertain to the following class, Point:

public class Point {
private double x;
private double y;

public Point() {
this (0, 0);
}

public Point(double a, double b) {
/* missing code */
}
// ... other methods not shown
}
Which of the following correctly implements the equals method?

public boolean equals(Point p) {
return (x == p.x && y == p.y );
}
public void equals(Point p) {
System.out.println(x == p.x && y == p.y);
}
public void equals(Point p) {
return (x == p.x && y == p.y );
}
public boolean equals(Point p) {
return (x == Point.x && y == Point.y);
}
public boolean equals(Point p) {
System.out.println(x == p.x && y == p.y);
}
_______________________

The default constructor sets x and y to (0, 0) by calling the second constructor. What could be used to replace /* missing code */ so that this works as intended?

a = 0;

b = 0;
this (x, y);
this(0, 0);
x = a;

y = b;
a = x;

b = y;
_____________________

Which of the following correctly implements a mutator method for Point?

public double getX() {
return x;
}
public void setCoordinates (double a, double b) {
x = a;
y = b;
}
None of the items listed.

public double getX() {
return a;
}
public void setCoordinates (double a, double b) {
Point p = new Point(a,b);
}

Answers

Answer 1

b = 0;

this (x, y);

this(0, 0);

x = a;

y = b;

a =x

This above solution is just according to the public boolean equals(Point p) { return (x == p.x && y == p.y ); and public void equals(Point p) { System.out.println(x == p.x && y == p.y);}

What is public void?

An abstract class contains a pure virtual function. Pure virtual class cannot be instantiated but it can be subclassed and the subclass can provide an implementation of the function.

A virtual function declaration in the class is preceded by the virtual keyword. For example, virtual void print();

A pure virtual function declaration is followed by '=0;'

public: virtual void print()=0;

The main method header is written as public static void main(String[] args). A main method is something that is required in Java. You must have at least one class with a method named main. In Java, main is a static method, which means that it is part of its class but not parts of objects.

Therefore, This above solution is just according to the public boolean equals(Point p) { return (x == p.x && y == p.y ); and public void equals(Point p) { System.out.println(x == p.x && y == p.y);}

Learn more about System.out.println on:

https://brainly.com/question/19467372

#SPJ5


Related Questions

The increase in electro negativity when moving left to right on the periodic table can be explained by what?

Answers

Answer: Decrease in size

Explanation:

Electronegativity is defined as the property of an element to attract a shared pair of electron towards itself.

On moving across a period from left to right,   the size of an atom decreases because the electrons get added to the same shell and the nuclear charge keeps on increasing. Thus the electrons get more tightly held by the nucleus.

As, the size of an element decreases, the valence electrons come near to the nucleus. So, the attraction between the nucleus and the shared pair of electrons increases. Thus electronegativity increases.

If 1 teaspoons of vinegar are equivalent in 60 drops. How many drops of vinegar are there in
1 ½ teaspoons?

Answers

Answer:

90 drops

Explanation:

1 teaspoon = 60 drops

Half a teaspoon = 60 ÷ 2 = 30 drops

1 and a half = 60 + 30 = 90

It’s 90 because if you half 60 it will become 30 60+30=90

Looking at the following equation, which is the correct order of coefficients?

NH3 + O2 --> NO + H2O

Answers

Answer: The correct order of coefficients is 4, 5, 4 and 6.

Explanation:

According to the law of conservation of mass, mass can neither be created nor be destroyed. Thus the mass of products has to be equal to the mass of reactants. The number of atoms of each element has to be same on reactant and product side.

The balanced chemical equation is:

[tex]4NH_3+5O_2\rightarrow 4NO+6H_2O[/tex]

The correct order of coefficients is 4, 5, 4 and 6.

what is the chemical symbol for fluoride

Answers

Answer:  

I think F

Explanation:

The symbol for fluoride F

Suppose of nickel(II) bromide is dissolved in of a aqueous solution of potassium carbonate. Calculate the final molarity of nickel(II) cation in the solution. You can assume the volume of the solution doesn't change when the nickel(II) bromide is dissolved in it. Round your answer to significant digits.

Answers

The question is incomplete, the complete question is;

Suppose 1.87g of nickel(II) bromide is dissolved in 200.mL of a 52.0mM aqueous solution of potassium carbonate. Calculate the final molarity of nickel(II) cation in the solution. You can assume the volume of the solution doesn't change when the nickel(II) bromide is dissolved in it. Be sure your answer has the correct number of significant digits. The answer is needed in M.

Answer:

0.0428 M

Explanation:

The equation of the reaction is;

NiBr2 + K2CO3 → NiCO3 + 2KBr

Number of moles of NiBr2 = mass/molar mass = 1.87 g/218.53 g/mol =

8.557 *  10^-3 moles

Now, we know that the Ni^2+ comes from the NiBr2. Also, the concentration of Ni^2+ in NiBr2 = concentration of Ni^2+ in NiCO3

So,

Concentration of Ni^2+ = 8.557 *  10^-3 moles/0.2 L = 0.0428 M

Help pls!!!!!!!!!!!!!

Answers

Answer:

3rd

Explanation:

It’s a simple question in Welding when you use a torch if you add a lot of oxygen to the fuel what happens does it burn faster or what I want to know

Answers

Answer:

Easy, the flame is smaller but burns hotter.

Explanation:

A sample of compound A (a clear, colorless gas) is analyzed and found to contain 4.27g carbon and 5.69g oxygen. A sample of compound B (also a clear, colorless gas) is analyzed and found to contain 5.19g carbon and 13.84g oxygen. Are these data an example of the law of definite proportions, the law of multiple proportions, or neither? What do these data tell you about substances A and B?

Answers

Answer:

law of multiple proportions

Explanation:

The law of multiple proportions states that, if two elements A and B, combine to form more than one chemical compound. Then the various masses of one element A, which combine separately with a fixed mass of element B are in  simple multiple ratio.

We can see that the ratio of oxygen that combines with carbon in the two compounds( A and B) is 1:2. This demonstrates the law of multiple proportions.

The substances A and B must be CO and CO2 respectively.

Which types of energy transformations does a television make?

Electrical energy to energy of motion and heat energy
Electrical energy to heat energy and light energy
Electrical energy to sound energy and energy of motion
Electrical energy to sound energy and light energy

Answers

Answer:

d.

Explanation:

the electricity is why we can hear sounds from the television and see it

Consider a disubstituted aromatic compound. The parent name is benzene and there is a chloro and bromo substituent. Disubstituted benzenes can be described using the terms ortho, meta and para, depending on their relative distance from each other. The terms are often just abbreviated as o, m and p. In addition, the IUPAC name can use locant numbers instead of the descriptor. Br
Select the correct names for the structure.
1. 1-bromo-3-chlorobenzene
2. 3-bromo-1-chlorobenzene
3. meta-bromochlorobenzene
4. o-bromochlorobenzene
5. ortho-bromochlorobenzene
6. m-bromochlorobenzene

Answers

Answer:The correct names for the structure are:

--> 1. 1-bromo-3-chlorobenzene.

--> 3. meta-bromochlorobenzene.

--> 6. m-bromochlorobenzene.

Explanation:

Benzene is the simplest member of the aromatic hydrocarbons. It has a ring structure consisting of six carbon and six hydrogen atoms. This equally means that a benzene can have up to six substituents. One of the chemical properties is that benzene and other members of its series undergo substitution reaction whereby one or more of its six hydrogen atoms is replaced by monoatomic reagents.

Disubstituted benzene consists of two substituents which are described based on either numerical locants or specific words for the three possible forms.

The numerical locant method are used the same naming substitutes of other hydrocarbons. From the question, the numerical locant method was derived through using the following steps:

--> the functional group is benzene

--> there are two substituents which includes bromine( written as bromo) and chlorine ( written as chloro)

--> while placing the number, it's done alphabetically ('1-bromo' comes before '3-chloro') in a clockwise manner. This is to give chorine the lowest locant number.

The second naming method for a disubstituted benzene is the the ortho-, meta-, para- (or their singel letter equivalent) nomenclature method. This is only used for benzene structures.

--> ortho or O : this is used when the substituents are close to each other in the benzene ring.

--> meta or (m) : This is used when the substituents are separated by one carbon in the benzene ring.

--> para or (p): This is used when the substituents are across each other in the benzene ring

From the question, the bromine substituent is separated from the chlorine by one carbon atom, therefore it's meta-bromochlorobenzene or m-bromochlorobenzene.

Don’t skip please!!! I need help

Answers

Further explanation

Given

Atomic symbol

Required

Atomic composition

Solution

Atomic number = number of protons = number of electrons

Mass Number (A) is the sum of protons and neutrons

Number of protons and Number of Neutrons  in nucleus

Number of electrons in the shell

From the picture:

protons = 3

neutrons = 4

electrons = 3

atomic number = protons = electrons = 3

mass number = protons + neutrons = 3+4 = 7

5.6 g of Iron reacts with excess fluorine gas.

The mass of iron fluoride produced is 11.3 g

What is the formula of the iron fluoride?​

Answers

Answer: FeF3      Iron(III) fluoride

Explanation: 5.6 g = 1/10 mole Fe

11.3-5.6g F = 5.7 = 3/10 mole F

Is the study of matter and energy complete, or do you think there’s still new information to discover?

Answers

Answer:

Physical science, in turn, can be divided into chemistry and physics. Chemistry is the study of matter and energy at the scale of atoms and molecules. ... Physics is the study of matter and energy at all scales—from the tiniest particles of matter to the entire universe but i dont really know if there is new information to discover

Explanation:

hope it help and if it doesnt sorry ;)

explain the difference between aldehyde and ketones​

Answers

Aldehyde starts with a and ketones start with k

Answer:

You will remember that the difference between an aldehyde and a ketone is the presence of a hydrogen atom attached to the carbon-oxygen double bond in the aldehyde. Ketones don't have that hydrogen. ... Aldehydes are easily oxidized by all sorts of different oxidizing agents: ketones are not.

You find yourself in a room with dark gray walls. Medeleev’s image says, “This element is essential for plant life to thrive and is found in heavy clay minerals and the ash from your campfire.” What element are these walls made from?

Answers

Answer:

juvn hgf   jb ujvi i  junk food sux

Explanation:

Geosmin is an aroma compound found in raindrops. It's chemical formula is C12H22O. The molar mass is 182 g/mol. If you perform combustion analysis of 1.77 grams of this compound, how many grams of carbon should be isolated as CO2 during the analysis?

Answers

Answer:

5.13 g of CO₂.

Explanation:

We'll begin by writing the balanced equation for the reaction. This is illustrated below:

C₁₂H₂₂O + 17O₂ —> 12CO₂ + 11H₂O

Next, we shall determine the mass of C₁₂H₂₂O that reacted and the mass of CO₂ produced from the balanced equation. This can be obtained as follow:

Molar mass of C₁₂H₂₂O = 182 g/mol.

Mass of C₁₂H₂₂O from the balanced equation = 1 × 182 = 182 g

Molar mass of CO₂ = 12 + (2×16)

= 12 + 32

= 44 g/mol

Mass of CO₂ from the balanced equation = 12 × 44 = 528 g

SUMMARY:

From the balanced equation above,

182 g of C₁₂H₂₂O reacted to produce 528 g of CO₂.

Finally, we shall determine the mass of CO₂ produced from the reaction. This can be obtained as follow:

From the balanced equation above,

182 g of C₁₂H₂₂O reacted to produce 528 g of CO₂.

Therefore, 1.77 g of C₁₂H₂₂O will react to produce = (1.77 × 528)/182 = 5.13 g of CO₂.

Thus, 5.13 g of CO₂ were obtained from the reaction.

Lithium diorganocopper (Gilman) reagents are prepared by treatment of an organolithium compound with copper(I) iodide. Decide what lithium diorganocopper (Gilman) reagent is needed to convert 1-bromopropane into propylcyclohexane. Draw the structure of the organolithium compound that is used to prepare Gilman.

Answers

Answer:

See explanation and image attached

Explanation:

The  Gilman reagent is a lithium and copper (diorganocopper) reagent with a general formula R2CuLi.  R is an alkyl or aryl group.

They are useful in the synthesis of alkanes because they react with organic halides to replace the halide group with an R group.

In this particular instance, we intend to synthesize propylcyclohexane. The structure of the  lithium diorganocopper (Gilman) reagent required is shown in the image attached to this answer.

What is the difference between the structure of simple and complex carbohydrates?

Answers

Answer:

Simple carbs break down easier and contain sugars. Complex carbs contain starch and fiber.

Explanation:

Answer Image result for What is the difference between the structure of simple and complex carbohydrates?

Simple vs Complex Carbs. Carbohydrates are sugars that come in 2 main forms – simple and complex. This is also referred to as simple sugars and starches. The difference between a simple and complex carb is in how quickly it is digested and absorbed – as well as it's chemical structure.

(ILL GIVE 100 POINTS AND EDIT IT AND MARK BRAINLIEST) Examine the diagram of the cell cycle. Which label identifies the stage in which the DNA is copied and the cell grows? W X Y Z

Answers

Answer:

where is diagram. sorry.

How do you write 0.000157 in scientific notation

Answers

Answer:

1.57 × 10^-4

one point five seven times ten to the power of negative four

Police investigating the scene of a sexual assault recover a large blanket that they believe may contain useful physical evidence. They take it to the laboratory of forensic serologist Scott Alden, asking him to test it for the presence of semen. Noticing faint pink stains on the blanket, Scott asks the investigating detective if he is aware of anything that might recently have been spilled on the blanket. The detective reports that an overturned bowl of grapes and watermelon was found at the scene, as well as a broken glass that had contained wine. After the detective departs, Scott chooses and administers what he considers the best test for analysing the piece of evidence in his possession. Three minutes after completion of the test, the blanket shows a positive reaction. What test did Scott choose, and what was his conclusion? Explain your answer.

Answers

Answer:

Acid Phosphatase (AP) Test

Explanation:

Acid phosphate is an enzyme that is found in the body. It is secreted majorly by the prostrate gland into the seminal fluid. The acid phosphatase test is used to test for the presence of semen in items.

Scott chose the acid phosphatase test because it is very useful in testing for semen on large items such as blankets. The reaction time for an acid phosphatase test for semen is less than 30 seconds. Seeing that the test was completed in three minutes, Scott concluded that the positive reaction was as a result of some other fluid.

The detectives reported that an overturned bowl of grapes and watermelon was found at the scene as well as a broken glass that had contained wine. Scott knew that some fruit juices like that of watermelon give a positive reaction to the acid phosphatase test but with  more time that of the semen fluid because the reaction is a very slow one.

Scott concluded that there was no presence of semen on the blanket and therefore there was no sexual assault.

onsider the iodination of salicylamide by sodium iodide and sodium hypochlorite via an electrophilic aromatic substitution to form iodo-salicylamide. Reaction scheme illustrating the iodination of salicylamide by sodium iodide and sodium hypochlorite via an electrophilic aromatic substitution to form iodo-salicylamide. Calculate the molar masses of the reactants and product. Report molar masses to 1 decimal place.

Answers

Answer:

The answer is "[tex]\bold{263 \ and \ 137.1 \frac{g}{ mol}}[/tex]".  

Explanation:

The chemical formula for Salicylamide: [tex]C_7H_7NO_2[/tex]

[tex]\to (12.011 \ \frac{g}{mol} \times 7)+(1.008 \ \frac{g}{mol} \times 7)+(14.0067 \frac{g}{mol} \times 1)+(15.999 \frac{g}{mol} \times 2) \\\\\to (84.077 \ \frac{g}{mol} )+(7.056 \ \frac{g}{mol} )+(14.0067 \frac{g}{mol})+(31.998 \frac{g}{mol} ) \\\\\to (84.077 \ \frac{g}{mol} )+(7.056 \ \frac{g}{mol} )+(14.0067 \frac{g}{mol})+(31.998 \frac{g}{mol} ) \\\\ =137.1377 \approx 137.1\ \frac{g}{mol}[/tex]

The chemical formula of Iodosalicylamide:[tex]C_7H_6INO_2[/tex]

[tex]\to (12.011\frac{g}{mol}\times 7)+(1.008\frac{g}{mol}\times 6)+(126.904\frac{g}{mol}\times 1)+(14.0067\frac{g}{mol}\times 1)+(15.999\frac{g}{mol}\times 2) \\\\\to (84.077\frac{g}{mol})+(6.048\frac{g}{mol})+(126.904\frac{g}{mol})+(14.0067\frac{g}{mol})+(31.998\frac{g}{mol}) \\\\=263.0337 \approx 263.0\ \frac{g}{mol}[/tex]

Why is one side of the moon called "the dark side of the moon"?

Answers

Answer:

Option C

Explanation:

The answer is option C or "The amount of time it takes to rotate around it's axis is the same amount of time it takes to revolve around Earth."Remember that the Earth and the Moons amount of time to make a full rotation is almost in sync and they're two sides of the moon, one side we do not see and that's because that side is currently faced away from the Earth which is called the dark side of the moon. Each side has two weeks oh night, and two weeks of day because of how long it takes the moon to revolve, so while we have a side towards the Earth which is illuminated by the sun we have another pointing away in the dark.

Hope this helps.

Which of the following notations represents an alpha particle?
A. 2 He
C.B+
В. В
D. Y

Answers

Answer:

A. 2 He

Explanation:

The notation of an alpha particle is depicted as:

                     ₂He

An alpha particles is a nucleus of 2 protons and 2 neutrons. So it is actually a Helium cation.

Alpha particles are monoenergetic and they mostly have discrete energy.

So, the mass number of the particle is 4 and atomic number is 2

Which color of light does a green object absorb?

Answers

Answer:

Magenta.

Explanation:

Color absorption is a process that occurs when a light wave strikes an object. When a light wave strikes an object it either absorbs color or transmits the color, or reflects the color. When a light wave strikes a green object, it absorbs a magenta color.

Magenta is a combination of red and blue light, therefore, the colors that the green object will absorb is red. blue, or magenta light.

Hurry I need Now!!!In which biome would the climax species be reached most quickly following a fire?
A Taiga
B desert
C Grassland
D. deciduous forest
E tropical rain forest

Answers

Answer:

D. Deciduous Forest.

Explanation:

what do you think will happen if there is no coal.

Answers

Answer:

If coal and petroleum will get exhausted it will be very difficult for us to transport because most vehicles depends on petroleum, Transport on Earth will became complicated, and if coal will get exhausted we will lose an unique fossil fuel. Coal is used in various domestic and industrial purposes.

During a chemistry lab exercise, a student isolates a compound at STP. In her
lab report, she has identified it as an ionic compound. If it is an ionic compound, it
will likely have a _________boiling point and be a _______ at STP.
Choose the answer with the words in the correct order that complete the
passage.
A. high; liquid
B. low; gas
C. high; solid
D. low; solid

please answer asap thank you !! :)

Answers

b i hope this help byee

Ionic compounds have a high boiling point and be a solid at STP.

What is ionic compound?

Ionic compounds are those compounds which are formed due to high electrostatic attraction between cations and anions.

Ionic compounds are generally present in the solid state because of the presence of strong ionic bond. And due to this rigid structure boiling point of ionic compounds are very high as they want more energy to break their bonds.

Therefor, at standard temperature pressure (STP) ionic compounds will likely have a high boiling point and be a solid at STP.

To learn more about ionic compounds, visit below link:

https://brainly.com/question/11638999

Which of these is smallest?
cells
atoms
matter
elements

Answers

Answer:

atoms

Explanation:

i hope that help you

Answer:

atoms

Explanation:

Which best describes a hydrate?

A.) It has water molecules bonded directly to it.
B.) It lacks water molecules ik it’s crystal lattice.
C.) It lacks hydrogen and oxygen atoms, which make up water.
D.) It has water molecules incorporated into its crystal lattice.

Answers

D is your best answer
Other Questions
Can yall help for these two questions?"What are behavioral adaptations?Why would an animal adapt it's behaviors?" 98.9 grams Na-Convert to moles Factor completely.n^2 + 7 n - 44A) (n + 4)(n - 11)B) (n - 4)(n + 11)C) (n - 4)(n - 11) What is this called? * Which best states the goal of this declaration?Read the passage from a declaration issued followingthe Yalta Conference in 1945.The following declaration has been approved toform interim governmental authorities broadlyrepresentative of all democratic elements in thepopulation and pledged to the earliest possibleestablishment through free elections of governmentsresponsive to the will of the peopleO Free elections should be held to set up governmentsthat reflect the will of the peopleO The Soviet Union should be given additional territoryin Eastern EuropeO People should decide for themselves if they wantgovernments chosen in free elections.O The United Nations should decide when electionswould be held in Eastern EuropeNextSubmitMark this and return i need help my class is depending on me plzz help "By God," the Green Knight said, "I am gladThat I shall have from your hand what I asked for here,And that you have repeated fully, in your own words,The whole of the covenant I asked of the King:Only now you must swear to me, upon your word,That you will expect, for yourself, wherever you manageTo find me on earth, to be repaid in kindFor what you accord me today before this high company."Sir Gawain and the Green Knight,W. S. MerwinWhich evidence shows that the Green Knight thinks honesty is important? Check all that apply. "'By God,' the Green Knight said""I am glad / That I shall have from your hand what I asked for here""And that you have repeated fully, in your own words, / The whole of the covenant I asked of the King""Only now you must swear to me, upon your word""wherever you manage / To find me on earth" Please hurry I need it now! The bell is going to ring in like 18 minutes. What was the advantage of having Greek colonies spread along the coastlines of the Mediterranean Sea? First person to answer it with all the question right gets brainly Est Question 1 (3 points) To function on their own, what must unicellular organisms do?Question 1 options:work with other cellsperform a specialized taskmake tissuesdo all jobs for survivalQuestion 2 (3 points) All living things are made of ______.Question 2 options:multicellulartissuescellsorganismsQuestion 3 (3 points) A fish laying hundreds of eggs is an example of _________.Question 3 options:producing offspringobtaining energyall of the answers are correctmaintaining structureQuestion 4 (3 points) What do we call the branch of science for classification of organisms?Question 4 options:TaxonomyPhysicsChemistryBiologyQuestion 5 (3 points) Which example is NOT a basic need of all organisms?Question 5 options:watersoilfoodappropriate enviornmentQuestion 6 (3 points) All successful organisms must be able to do what three things?Question 6 options:obtain energy, produce offspring, eatobtain energy, eat, play video gamesmaintain their structure, eat, build a homeobtain energy, produce offspring, maintain their structureQuestion 7 (3 points) Which example is NOT an organism?Question 7 options:bacteriamoldhumanlungQuestion 8 (3 points) What is an example of "maintaining structure"?Question 8 options:eating an applea cell dividinghealing a broken armcatching a fishQuestion 9 (3 points) Which type of organism is ale to cause an infection or contagious disease?Question 9 options:roseplantanimalbacteriaQuestion 10 (3 points) SavedWhat do all living things need?Question 10 options:energy, water, sunshine, and protectionoxygen, an outer covering, parents, vitaminsfood, water, air, and a place to livewater, parents, a place to live, and air Terri weighed 95 lbs last month. This month she weighed 105 lbs. What is the percent of increase? 20 pts ASAP!!!!Which aspect of life in the Middle Ages is most reflected in Passage 1?Parents often made important life decisions for their children.Many people took long journeys, or pilgrimages, to holy shrines.For safety, people formed small communities around a central lord or master.As many people were farmers, major events generally revolved around the seasons. Pedro viaje de Manizales a Bogot y recorri354.72 kmexprese en Centimetros la distancia recorrida por Pedro HURRY PLEASE, can you have a abotuse triangle with one acute angle? explain what does pog mean? IT CLEARLY DOESNT MEAN PLAYER OF THE GAME Why did our founding fathers create a government PLEASE PLEASE PLEASE HELP I WILL GIVE BRAINLIESTAn iPad Mini and an iPad Pro have an approximate scale factor of 1.5, where the iPad Pro is 1.5 times the size of the iPad Mini. Which statement is true?A) The perimeter of the screen of the iPad Mini is 1.5 times the size of the iPad Pro.B) The perimeter of the screen of the iPad Pro is 1.5 times the size of the iPad Mini.C) The area of the screen of the iPad Mini is 1.5 times the size of the iPad Pro.D) The area of the screen of the iPad Pro is 1.5 times the size of the iPad Mini. There is a very long straw of charge that is uniformly charged in electro static equilibrium. It has a charge per unit length of 4.0E-9 C/m (4.0 nC/m) and a radius of 0.5 m. What is the strength of the electric field a distance of 10.0 m from its center outside the straw The French conquered many colonies and forced the citizens of these new places to practice French language and culture, this is an example of which type of rule? Yeah- I need help please-3r - 13r = 2 Explain the similarities and differences between Mildred and Clarisse. Give a minimum of 4 pieces of evidence from the text. The book is farenheit 451.