subject

You are asked to write the Point class in order to use point-type objects as follows: Point P = new Point (1,2) // create point P with coordinates (1,2)
Point P = new Point (). // create the coordinate point (0,0)
P. x = 2 // sets the abscissa of P equal to 2
P. y = 5 // sets the abscissa of P = 5
Point Q = P. getSymmetric () // returns the point Q symmetrical to P with respect to the origin. For example if P (2,3) => Q = (- 2, -3)

Code in JAVA, Thanks!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
question
Computers and Technology, 25.06.2019 08:50
The purpose of this problem is to write some small functions and practice passing things around amoung functions.1) the main function shall ask the user to enter three numbers and read the three numbers.2) write a function named findsum that takes three numbers as arguments and returns their sum. the main function shall call this function.3) write a function named findaverage that takes the sum and the number of numbers and returns the average. the main function shall call this function.4) write a function named findsmallest that takes the three numbers and returns the smallest value. the main function shall call this function.5) the main function shall print the results in the following format, with two decimal positions and the decimal points aligned:
Answers: 3
question
Computers and Technology, 25.06.2019 13:30
Peripherals can be used to output information. true or false
Answers: 1
You know the right answer?
You are asked to write the Point class in order to use point-type objects as follows: Point P = new...
Questions
question
English, 18.11.2020 23:40
question
Biology, 18.11.2020 23:40
Questions on the website: 13722367