Write a program that takes the x - y coordinates of a point in the Cartesian...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that takes the x - y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. The program will allow user to continue enter the point values with appropriate prompt message (Do you want to continue next entry [Y/N]?). - NO all QIV Sample lines of output: Please enter x and y coordinates: -1.0 -2.5 (-1.0, -2.5) is in quadrant III Do you want to continue [Y/N] : Y Please enter x and y coordinates: 0.0 4.8 (0.0, 4.8) is on the y-axis Do you want to continue [Y/N] : N Write a program that takes the x - y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. The program will allow user to continue enter the point values with appropriate prompt message (Do you want to continue next entry [Y/N]?). - NO all QIV Sample lines of output: Please enter x and y coordinates: -1.0 -2.5 (-1.0, -2.5) is in quadrant III Do you want to continue [Y/N] : Y Please enter x and y coordinates: 0.0 4.8 (0.0, 4.8) is on the y-axis Do you want to continue [Y/N] : N
Expert Answer:
Related Book For
Introduction To Programming In Java An Interdisciplinary Approach
ISBN: 9780672337840
2nd Edition
Authors: Robert Sedgewick, Kevin Wayne
Posted Date:
Students also viewed these programming questions
-
A student hourly employee does small secret arial projects. The number of projects she completes in a day is the response variable y . The number of hours she works in a day is the predictor variable...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Nine friends vote on their favorite fruit. Only one person in the group votes for kiwi. Choose the decimal that is equivalent to this fraction.
-
Explain why the inhomogeneity factor, , in rod and wire drawing depends on the ratio h/L as plotted in Fig. 6.12
-
Saturated vapor R-410a at 60 C changes volume at constant temperature. Find the new pressure, and quality if saturated, if the volume doubles. Repeat the problem for the case where the volume is...
-
By using six factor formula for \(k\), derive the Eqs. (7.93), (7.94) of Section 7.7.1. dkoo dp= k MB dM dB 8 + (7.93) 1+M B M B2
-
Balance sheet data for the Dover Hot Tub Company on December 31, the end of the fiscal year, are shown at the top of the following page. Prepare a comparative balance sheet for 2008 and 2007, stating...
-
What are the reasons to use a relational database? What data does not fit well in the relational model?
-
A coin is tossed three times. An outcome is represented by a string of the sort HTT (meaning heads on the first toss, followed by two tails). The 8 outcomes are listed below. Assume that each outcome...
-
Which of the following events would indicate recording of a purchase in the AIS? a. Issue Purchase Order b. Receive Goods c. Make Payment d. Transfer Inventory e. None of these options
-
You have just been hired as the assistant manager at the local Dicks Sporting Goods store. Your first assignment is to determine the demand curve and the marginal revenue curve for the new Schwinn...
-
Despite the fact that many peptides have critical physiological functions (e.g., as hormones, neurotransmitters, antibacterial toxins), they are not considered to be ideal as drugs. The following...
-
(a) Explain the nature and purpose of segmental reporting. (150 words) (b) Discuss the benefits and potential problems of segmental reporting from the viewpoint of (i) managers preparing the...
-
The United States has historically imposed import tariffs on tobacco. Lets take a look at how these tariffs impact the market for tobacco. The domestic supply and domestic demand for tobacco are...
-
A rotating wheel has a moment of inertia of 0.310 kg/m2 and a rotational kinetic energy of 2.75 J. 1) Calculate the angular speed of a rotating wheel in rad/s. 2) Calculate the angular speed of a...
-
Use multiplication or division of power series to find the first three nonzero terms in the Maclaurin series for each function. y = e x2 cos x
-
Develop an object-oriented version of BouncingBa11 (Program 3.1.9). Include a constructor that starts each ball moving in a random direction at a random velocity (within reasonable limits) and a test...
-
Minima in permutations. Write a program that takes an integer commandline argument n, generates a random permutation, prints the permutation, and prints the number of left-to-right minima in the...
-
Modify your program from the previous exercise to insist that the integers must be positive (by prompting the user to enter positive integers whenever the value entered is not positive).
-
Powerhouse Ltd purchased machinery on 2 January 2019, at a cost of $800 000. The machinery is depreciated using the straightline method over a useful life of 8 years with a residual value of $80 000....
-
The purchases and sales of Big Flower Pty Ltd of one brand of lawn fertiliser for the year ended 31 December 2019 are contained in the schedule below. The selling price up to 30 June was $12 per unit...
-
In groups of four or five, consider the following information. On 1 July 2019, Stevenson Pty Ltd, a proprietary company with three shareholders, acquired some property by issuing 100 000 shares to...
Study smarter with the SolutionInn App