subject

Design and implement a java program (name it CheckPoint) that prompts the user to enter the x-coordinate and y-coordinate of a point (in a Cartesian plane) as integer values. The program prints out the entered values followed by the location of the point on the plane. The possibilities for a point are: the origin point, on the x-axis, on the y-axis, in the first quadrant, in the second quadrant, in the third quadrant, or in the fourth quadrant. Format the outputs following the sample runs below. Sample run 1:
X-coordinate is 0
Y-coordinate is 0
(0,0)is the origin point.
Sample run 2:
X-coordinate is 4
Y-coordinate is 0
(4,0) is on the x-axis.
Sample run 3:
X-coordinate is -2
Y-coordinate is -3
(-2,-3) is in the third quadrant.
Sample run 4:
X-coordinate is 6
Y-coordinate is 9
(6,9) is in the first quadrant.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:30
Given the following code: if (n == 2) { k -= 2; } else if (n == 3) { k -= 3; } can be rewritten as: if (< condition > ) { < assignment statement > ; } assume that evaluating < condition > does not change the values stored in n and k. which of the following could be used as < assignment statement > ? k -= n; k -= 1; k -= 2; k += n; k = n - k;
Answers: 2
question
Computers and Technology, 22.06.2019 12:00
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
You know the right answer?
Design and implement a java program (name it CheckPoint) that prompts the user to enter the x-coordi...
Questions
question
English, 18.06.2020 11:57
question
English, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
question
Mathematics, 18.06.2020 11:57
Questions on the website: 13722367