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

Characteristics of a substance that can be measured or observed by changing the identity of the material is a
Group of answer choices

A. physical property

B. chemical property

C. physical change

D. chemical change

Answers

C cause ur changing the identity of the material

what happens when you continue to add a solute to an already saturated solution

Answers

Answer: nothing. It remains undissolved

Explanation: saturated = dissolved as much solute as solvent can contain

what is the substance? cdH) (Η) (Η
(H)C
cco
Ή) (Η
Η
Η

Answers

Answer:

A substance is a pure single form of matter. It cannot be separated into other kinds of matter by any physical process.

Help !!A student examines a picture of an important biological molecule in a textbook and writes four statements about the molecule in a chart
1. The molecule is found in the nucleus,
2. The molecule is made up of chromosomes.
3. The molecule carries genetic information.
4. The molecule contains genes.
Which statement needs to be revised to make it true? statement 1 statement 2 statement 3 statement 4​

Answers

Answer:

Statement 2 (The molecule is made up of chromosomes)

Explanation:

This question is describing DNA, as the biological molecule. DNA is a type of nucleic acid that functions in the storage of genetic information in the cell. This means that contained in the DNA, are segments that code for proteins called GENES. It is contained in the nucleus of eukaryotic cells where it is wrapped around structures called CHROMOSOMES.

BASED on the four statements given by the student, which happens to be characteristics of this molecule, the statement 2, which states that the molecule is made up of chromosomes needs to be revised to make it true. This is because DNA is not made up of chromosomes but rather DNA is contained in chromosomes.

A 8.15 g sample of hydrogen peroxide (H2O2) decomposes to form water and oxygen. The temperature and pressures conditions in the lab were 21.2oC and 761.4 torr, respectively. The oxygen gas is collected over a sample of water at 21.2oC; the vapor pressure of water at that temperature is 18.9 torr. When the water level inside and outside of the tube is equal the volume of gas is recorded as 176.23 mL. a) Write and balance the equation for the decomposition reaction

Answers

Answer: [tex]H_2O_2\rightarrow H_2+O_2[/tex]

Explanation:

Decomposition is a type of chemical reaction in which one reactant gives two or more than two products.

According to law of conservation of mass, mass can neither be created nor be destroyed. Thus the number of atoms of each element must be same on reactant and product side. Thus chemical equations are balanced.

The balanced equation for the decomposition reaction  of hydrogen peroxide is:

[tex]H_2O_2\rightarrow H_2+O_2[/tex]

Decomposition is a type of chemical reaction in which a chemical breaks into two or more molecules or atoms. One reactant breaks into two products which can be shown as:

                                         XY----->X + Y

The decomposition reaction of hydrogen peroxide can be written as:

                                           

                                              [tex]H_{2}O_{2} = H_{2} + O_{2}[/tex]

According to the mass conserving law the mass can neither be added nor deleted they can just get transferred.

For a reaction to be stable the number of atoms on both sides of the reaction should be balanced.

Therefore, the balanced chemical reaction of decomposition of hydrogen peroxide will be:

                                             [tex]H_{2}O_{2} = H_{2} + O_{2}[/tex]

To learn more about decomposition reaction follow the given link:

https://brainly.com/question/8009068

In a chemical equation, the new substance that is produced from a chemical reaction is called __________.

Answers

Answer:

products

Explanation:

yeah the answer is product

The answer is products.


A chemical reaction is the process in which atoms present in the starting substances rearrange to give new chemical combinations present in the substances formed by the reaction. These starting substances of a chemical reaction are called the reactants, and the new substances that result are called the products.

Predict: During positron emission, a protonis transformed into a neutronand a positron, which is emitted.The positron will fly through space until it encounters an electron.How will positron emissionaffect the atomic number and mass number of the atom

Answers

Answer:

See explanation

Explanation:

A positron is also called a positive electron. It results from the transformation of a proton into a neutron.

When a nucleus decays by positron emission, the atomic mass of both the parent and daughter nuclei remain the same but the atomic number of the daughter nucleus decreases by 1 compared to that of the parent nucleus. The daughter nucleus is now found one place to the left of the parent nucleus in the periodic table.

This leads to an increase in the Neutron/Proton ratio.

How do atoms of copper differ from atoms of aluminum? *
They are not pure substances.
They have different chemical properties.
They can be formed by physical changes.
They are made up of more than one type of particle.

Answers

Answer:

The copper atoms are smaller than the aluminum atoms so more copper atoms fit in the same volume. ... Copper is more dense than aluminum. The copper must be more dense because when you compare equal volumes of the two substances, the copper has greater mass

Mercury is the only metal that is a liquid at room temperature. When mercury vapor is inhaled, it is readily absorbed by the lungs, causing signifiant health risks. The enthalpy of vaporization of mercury is 59.1 kJ/mol. The normal boiling point of mercury is 357°C. What is the vapor pressure of mercury at 43°C? Assume the enthalpy of vaporization does not depend on temperature.

Answers

Answer:

P = 0.0166 mm Hg

Explanation:

To solve this question, we need to use the Clausius Clapeyron equation, which is a commonly used expression to calculate vapour pressure at a given temperature. We have the enthalpy of vaporization of the mercury, so, let's write the equation:

Clausius Clapeyron equation:

Ln (P₂ / P₁) = (-ΔHv / R)(1/T₂ - 1/T₁)    (1)

Where:

R: universal constant of gases (8.314 J / K.mol)

P₂: Vapour pressure at 43°C (or 316 K)

P₁: Pressure of mercury at the boiling point (1 atm)

T₂: temperature at 43 °C

T₁: Boiling point of mercury (357 °C or 630 K)

As we are given the boiling point of the mercury, we can safely assume that the pressure at this point is 1 atm, becuase remember that when a sustance boils, is because it's internal pressure has reached the atmospherical pressure of 1 atm. With this clear, all we just need to do is solve for P₂. We are going to do this very slowly so you can understand the process. First let's replace the given data:

Ln (P₂ / 1) = (-59100 J/mol / 8.314 J / K.mol) (1/316 - 1/630)

Ln P₂ = -7108.49 * (3.16x10⁻³ - 1.59x10⁻³)

Ln P₂ = -7108.49 * (1.51x10⁻³)

Ln P₂ = -10.7338

P₂ = 10⁽⁻¹⁰°⁷³³⁸⁾

P₂ = 2.18x10⁻⁵ atm

We can express this value in mm Hg and it will be:

P₂ = 2.18x10⁻⁵ * 760

P₂ = 0.0166 mm Hg

Hope this helps

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 ;)

Which orbital is partially filled in the Zirconium (ZI) atom?

Answers

Answer:

4d orbital.

Explanation:

Hello!

In this case, since zirconium's atomic number is 40, we fill in the electron configuration up to 40 as shown below:

[tex]1s^2,2s^2,2p^6, 3s^2,3p^6,4s^2,3d^{10},4p^6,5s^2,4d^2[/tex]

Thus, the orbital 4d is partially filled.

Best regards!

Choose the correct statement regarding the behavior of water.Group of answer choicesThe heat capacity of liquid water is greater than the heat capacity of solid ice.The water phase with the smallest temperature increase when adding 10 kcal of heat is solid ice.Ice has a higher density than liquid water and therefore sinks.The water phase with the smallest temperature increase when adding 10 kcal of heat is gas vapor.The heat capacity of gas vapor is greater than the heat capacity of liquid water.

Answers

Answer:

The water phase with the smallest temperature increase when adding 10 kcal of heat is solid ice.

Explanation:

The rest of the statements are incorrect. The density of ice is lower than the density of water. The heat capacity of solid ice is greater almost twice the heat capacity of the liquid water. The heat capacity of vapors is less than heat capacity of liquid.

Determine whether the given name for each ionic compound is correct or not. C o I 2 CoIX2: cobalt(II) iodide Correct name B a C l 2 BaClX2: barium dichloride Correct name C s 2 O CsX2O: cesium oxide Choose... R b 2 S RbX2S: rubidium sulfite Correct name S r B r 2 SrBrX2: strontium(II) bromide Incorrect name

Answers

Answer: [tex]CoI_2[/tex] : cobalt (II) iodide : correct

[tex]BaCl_2[/tex] : barium di chloride : incorrect

[tex]Cs_2O[/tex] : cesium oxide: correct

[tex]Rb_2S[/tex] : rubidium sulphite : incorrect

[tex]SrBr_2[/tex] : strontium (II) bromide : correct

Explanation:

The nomenclature of ionic compounds is given by:

1. Positive is written first followed by the oxidation state of metal in roman numerals in parenthesis.

2. The negative ion is written next and a suffix is added at the end of the negative ion. The suffix written is '-ide'.

Hence, the name of [tex]CoI_2[/tex] is cobalt (II) iodide, [tex]BaCl_2[/tex] is barium (II) chloride, [tex]Cs_2O[/tex] is cesium oxide, [tex]Rb_2S[/tex] is rubidium sulphide and [tex]SrBr_2[/tex] is strontium (II) bromide.

What is the main point of paragraph 3?

A Red blood cells

B the skeletal system

C the structure of a bone

D bones, cartilage, and blood vessels

Answers

C the structure of a bone

The picture has my question

Answers

Answer:

b or c

Explanation:

The answer is C.

Explanation: Between the chemicals equation it forwards out to the certain equation which also equals too the equation

Define
wheel and axel​

Answers

Answer:

A wheel and axle is a simple lifting machine that consists if rope that unwind a wheel onto a cylindrical drum/ shaft to provide mechanical advantage.

wheel and axle is a simple machine having two co-axial cylinder of different radii fitted to a common axies.

The image shown here is a good illustration of which law?

Answers

Answer:

3rd law

Explanation:

His third laws states that every action has an equal and opposite reaction. because you are putting force on your wall, the wall is giving the force of wall on your finger.

Rank the following elements in INCREASING Atomic Radius: Fe, Ni, K, Ti (SMALLEST TO
LARGEST)
a. Ti, Ni, Fe, K
b. Ni, Fe, Ti, K
c. Fe, Ti, K, Ni
d. K, Ti, Fe, Ni

Answers

Answer:

b. Ni, Fe, Ti, K

Explanation:

The given elements are present in period 4 of periodic table. Now we will discuss the trend of atomic radius along period.

Atomic radius:

" It is the smallest distance from nucleus to the outer most valance shell of an atom"

When we move from left to right in the periodic table the number of valance electrons in an atom increase. The atomic size goes to decrease in same period because of edition of electron with in the same shell. When the electron are added, at the same time protons are also added in the nucleus. In this way positive charge is also going to increase and this charge is greater in effect than the charge of electrons. This effect causes the greater nuclear attraction. The electrons are pull towards the nucleus and valance shell come closer to the nucleus.

As a result of this greater nuclear attraction atomic radius decreases and ionization energy increases because it is very difficult to remove the electron from atom and more energy is required.

Ni ∠ Fe ∠ Ti ∠ K

The dissolution of water in octane (C8H18) is prevented by ________. The dissolution of water in octane (C8H18) is prevented by ________. hydrogen bonding between water molecules ion-dipole attraction between water and octane molecules repulsion between like-charged water and octane molecules dipole-dipole attraction between octane molecules London dispersion forces between octane molecules

Answers

Answer:

London dispersion forces between octane molecules

Explanation:

Water is a polar solvent and the molecules of water are held together by hydrogen bonds.

On the other hand octane is a nonpolar molecule held together only by weak dispersion forces.

We know that the interaction of substances depend on the nature of intermolecular forces present in each substance. As a result, water can not interact with octane because octane molecules predominantly have a different kind of intermolecular force between them- the London dispersion forces.

Calculate the number of grams of 02, produced when 43 grams of potassium chlorate decomposes.
2KClO3=3O2+2KCl

Answers

Mass O2 = = 16.832 g

Further explanation

Given

43 grams of potassium chlorate

Required

Mass of O2

Solution

Reaction

2KClO3 ⇒3O2 + 2KCl

Mol KClO3 :

= mass : MW

= 43 g : 122,55 g/mol

= 0.3509

From the equation, mol O2 :

= 3/2 x moles KClO3

= 3/2 x 0.3509

= 0.526

Mass O2 :

= 0.526 x 32 g/mol

= 16.832 g

Deposition can occur where wind or running water slows down? true or false

Answers

Answer:

The answer is True.

Explanation:

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.

Explain how the processes of photosynthesis and respiration are related to each other

Answers

Answer:

Explanation:

The end product of Photosynthesis is glucose that is used in cellular respiration to make ATP. The glucose is then turned back into carbon dioxide, which is used in photosynthesis. While water is broken down to form oxygen during photosynthesis, in cellular respiration oxygen is combined with hydrogen to form water.

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

When determining the density of a grape, a student was not careful when putting the grape into the graduated cylinder, and some of the water got splashed out. How would that affect the determined density of the grape? In other words, is the calculated density be higher or lower than the actual density of the grape? Explain your answer (fill in the blanks below).
If some of the water got splashed out, the measured “grape + water” volume is incorrectly ______________________ (high or low?).
Then the calculated volume of the grape (“grape+water” – “water only” volume) is incorrectly _______________ (high or low?).
When calculating the density, the mass is divided by a (higher or lower?) ______________ value. As the result, the determined density is erroneously (high or low?) _____________ and therefore the determined density is (higher or lower?) ______________than the actual density of the grape.

Answers

Answer:

gtjgyjtjyjjjjk

Explanation:

how many NaF is 4.50 mol

Answers

The molar mass of NaF is 41.98817 g/mol so 4.5 * 41.98817 is 188.946765 g.

How many molecules are in 97.21 grams of Sodium Chloride (NaCl)?

Answers

1.66 is the answer because it’s is

How many molecules are contaiined in 125 grams of water, H2O?

Answers

Answer:

Water has a molar mass of 18.015 g/mol . This means that one mole of water molecules has a mass of 18.015 g . So, to sum this up, 6.022⋅1023 molecules of water will amount to 1 mole of water, which in turn will have a mass of 18.015 g . 2.7144moles H2O ⋅6.022⋅1023molec.

Explanation:

How many atoms are in 4 moles of oxygen?

Answers

Using Avogrado's constant (6.022e23):

4(6.022e23) = 2.41e24

Which climate is a subcategory of polar climate

A ice cap
B subarctic
C highlands
D humid continental

Answers

Answer:

Ice cap

Explanation:

See its polar so like north pole and north pole is ice cap.

Answer:

Ice cap

Explanation:

Other Questions
The property taxes on a home varies directly with the value of the home. Jack currently lives in a home worth $172,000 and pays $13,760 in taxes.How much would someone pay in property taxes if they live in a $329,000 home in the same area? Simplify the expression. - 2.6f + 0.45 - 16 - 8 - 2.6f + 0.45 - 16 - 8 = I need it for an assignment an it's due today can anyone help me please? Write by what rule you know the triangles are congruent, or write CNBD for "Cannot be determined." Segments and angles are congruent only if marked congruent. Find the minimum value ofC = 6x + 7y Select all the correct answers.Denise is researching the impact of gentrification, an increase in middle-class and affluent homeowners, on the population of her high school.Which two sources would be most useful to her research?interviews with local realtors about the changes to neighborhoods near Denise's schoola research article with data showing changes in the "tudent population at Denise's school0 0 0 0state assessment results for the last ten years for Denise's high schoolan opinion piece in the local newspaper from a parent about new school zone policiesResetNextNext If x= 5 and y = 2, work out the value of a) 3x + yb) 2x2c) (x - y)2 John rode 2 kilometers on his bike. His sister Sally rode 6,000 meters on her bike. How many more kilometers did Sally ride? explain why cells don't just continue to grow bigger as the organisms grow bigger. Why do cells divide? Write in complete sentences PLS IM SO CONFUSLEZZZD 2+2 How do writers support their points in a research paper? Select the expression equivalent to 4( 7) + 8. Find the slope between the two points (-6, 3) and (12, 19) yo___ muy consada hoya. tengob. estoyc. soyd. hablo Which aspect of Gallegher's character is most important to the story?A. his gift for absorbing details of city lifeB. his ability to snap at his listenersC. his lack of book learningD. his home life far from the newspaper office giving Brainly to correct answer (im doing timed test please hurry) Manny begins the summer with $200 How did the English Bill of Rights change the government structure of England?A)It increased the role of a sovereign leader over.B)It increased government spending and focused on absolute control.C)It limited Parliament's power and increased the power of the church.D)It limited the monarch's power to be shared with Parliament and thepeople. i dont understand.online school is hard Pls help me on this question ! 10 pts for you:) A Chrome book is on sale for 30 % off the original price plus10% sales tax. If the Chrome book originally price is $360.What is the final sale price that you will pay for the Chromebook?