1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ella [17]
3 years ago
12

1. Add the following method to the Point class:

Computers and Technology
1 answer:
Pachacha [2.7K]3 years ago
4 0

Answer:

Explanation:

The following code is written in Java and creates all of the methods that were requested in the question. There is no main method in any of these classes so they will have to be called from the main method and call one of the objects created method for the code to be tested. (I have tested it and it is working perfectly.)

class Point {

   private int x, y;

   public void Point(int x, int y) {

       this.x = x;

       this.y = y;

   }

   public double distance (Point other) {

      double distance = Math.sqrt(Math.pow((other.x - this.x), 2) + Math.pow((other.y - this.y), 2));

      return distance;

   }

   

   public int quadrant() {

       if (this.x > 0 && this.y > 0) {

           return 1;

       } else if (this.x < 0 && this.y > 0) {

           return 2;

       } else if (this.x < 0 && this.y < 0) {

           return 3;

       } else if (this.x > 0 && this.y < 0) {

           return 4;

       } else {

           return 0;

       }

   }

}

class Name {

   String firstName, lastName;

   char middleInitial;

   

   public String getNormalOrder() {

       String fullName = firstName + " " + middleInitial + " " + lastName;

       return fullName;

   }

   

   public String getReverseOrder() {

       String fullName = lastName + ", " + firstName + " " + middleInitial;

       return fullName;

   }

}

You might be interested in
Why is the central limit theorem so important to the study of sampling distributions?
givi [52]

Answer:

in the paragraph

Explanation:

The central limit theorem is known to be important to the study of sampling distributions because it enables us to disregard the shape of the population when the value of n is relatively large. Was this answer helpful?

7 0
2 years ago
While conducting a vulnerability assessment, you're given a set of documents representing the network's intended security config
Sophie [7]

Answer:

The baseline review

Explanation:

Solution:

The baseline review: this can be defined as the gap analysis or the beginning environmental review (IER). it is an assess study to get information about an organisation's present activities and associated environmental impacts,  impacts and legal requirements.

This review issues an overview of the quality and weaknesses of an organisation’s environmental execution and opportunities for improvement.

6 0
3 years ago
How can you troubleshoot Internet access problems
Oxana [17]

Answer:

When your Internet service is disrupted, there can be many things that have gone wrong. The best way to start is to determine if everything is broken (i.e. you can't access any websites or Internet services) or if the difficulty is only with a certain program or a specific website is not responding.

  • Check the network icon (or wireless connection settings) to see if you have Internet access. Ensure that your network adapter is not turned off.
  • Check for changes to proxy settings.
  • Check the network cables if your computer is wired to the router.
  • Reset your router.
  • Check your firewall or security software. There are specific troubleshooting steps for ZoneAlarm issues.
  • Check your browser access issues or email problems.

6 0
3 years ago
PLEASE HELP ASAP!!!!111 Read "Teenagers are rewriting the rules of the news" (find it somewhere and answer questions below)
Ilya [14]

Answer:

Sorry, we picked up your question late. There are a lot of questions, and every now and then some misses out. And I am sure you will understand. However, the cool thing is your answers are correct. I read the complete article on young adults or teenagers and found the same. And I am sure you will agree with the facts, and use its best meaning in your own life. I am, however, listing below all the answers for your complete satisfaction. And I congratulate you, you are up with the correct list of answers.

The answer to the First question is:

B. the description of how influencers follow young social media users"

Second question answer is

C. Andrew Yang

And the third question answer is:

C. Teens and young adults consume and spread news information through social media.

And I am sure you must have liked this article. Article reading is a good habit. You should always start a day by reading one article online or in newspaper.

Explanation:

Please check the answer section.+

4 0
3 years ago
The reaction time of a driver to visual stimulus is normally distributed with a mean of 0.4 seconds and a standard deviation of
Alex Ar [27]

Answer:

<em>The reaction time of a driver to visual stimulus is normally distributed with a mean of 0.4 seconds and a standard deviation of 0.05 seconds. What is the reaction time that is exceeded 90% of the time? = −1.28, so x = 0.05 × (−1.28) + 0.4=0.336.</em>

Explanation:

correct me if im wrong please

6 0
3 years ago
Other questions:
  • The case states that google intended the limited initial rollout to be a beta test of google glass, meaning that the adopters we
    8·1 answer
  • A program requires that you change your screen size from 1024 X 728 to 800 X 600. In which of the following locations should you
    7·2 answers
  • Alternating Current or AC is better for use in ___________, while DC direct current is needed in _________ .
    15·2 answers
  • It is safe to interchange oxygen and fuel gas hoses. A. False B. True
    13·2 answers
  • Outlines are effective because
    13·2 answers
  • 1. Explain the distinction between interpretation and compilation. What are the comparative advantages and disadvantages of the
    13·1 answer
  • When activated, an Excel object has all the features of an Excel ______?
    9·2 answers
  • Identfy two duties of the governer stationed at mombasa under portugues rule?​
    8·1 answer
  • ¿cuáles son los usos que se le pueden dar a una bicicleta?
    6·1 answer
  • What is the next line?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!