Typical two-dimensional graph from mathematics

Assignment Help Other Subject
Reference no: EM13252064

Consider a typical two-dimensional graph from mathematics. The graph has four quadrants which are numbered counterclockwise from the upper right:  first quadrant (upper right) if both x and y are positive , second quadrant (upper left) if x is negative and y is positive , third quadrant (lower left) if both x and y are negative ,fourth quadrant (lower right) if x is positive and y is negative

Write a program that asks the user for values of x and y, and displays

the point as an ordered pair along with a message that describes

where that point falls on the graph.

above, below or on the x-axis

to the left, right or on the y-axis

quadrant number, written using Roman numerals or if the point is at the origin (0,0). Do not display a quadrant or message if the point lies on a single axis, (3, 0).

Example Output:

Enter x: 3.4

Enter y: -8.2

Point: (3.4, -8.2)

The point is below the x-axis.

The point is to the right of the y-axis.

The point lies in quadrant IV.

Instructions:

1. Develop an algorithm (using a flowchart) that describes how your program works.

2. Write a Java program using your algorithm. You may use your own style, but make sure you are consistent through the whole program. Write efficient, maintainable and readable code, (ie. blank lines, indentation, comments…). Remember to use line comments and block comments to document blocks of code and variables.

3. Correct all syntax errors and check your output.

4. Save your program in a file called Graph.java

Reference no: EM13252064

Previous Q& A

  Schedule and cost variances for a project

Find the schedule and cost variances for a project that has an actual cost at month 22 of $540,000, a scheduled cost of $523,000, and an earned value of $535,000. What is your overall interpretation of this result?

  What was the speed of the bullet-bob

Suppose a bullet of mass m = 6.77g is fired into a ballistic pendulum whose bob has a mass of M = 0.693kg. What was the speed of the bullet-bob combination immediately after the collision takes place

  Determine the period-frequncy and effective value

For each of the following waveforms, determine its period, frequncy, and effective value a) 5 V b) 2sin80t-7cos20t+5 V c) 5cos50t+3sin50t V d) 8cos^290t mA

  Find equivalent of four resistors are connected in parallel

Four Resistors are connected in parallel. what is the equivalent resistance if their individual resistances are  r1 =100 Ohms ±5% tolerance r2 =470 Ohms ±5% tolerance r3 =330 Ohms ±10% tolerance r4 =1000 Ohms ±5% tolerance

  Should this be a concern for shareholders of firms

The executives and directors of these companies have in many cases gained employment as directors of other firms. Should this be a concern for shareholders of these firms?

  State the anode and cathode half - reactions

The reactions represented below are all spoontaneous as written. For each, write the anode and cathode half - reactions and indicate the signs of the electrodes.

  How much safety stock do you carry

Suppose you reduced your ordering cost from $50 to $10, what is the impact on all other variables? (increase or decrease, change to how much?)

  What are the pros and cons of having more diverse workforce

What are the pros and cons of having a more diverse workforce? Is the United States in a better position to compare globally because of its diverse population?

  Design op amp circuit to produce output vout

design op amp circuit to produce output vout which is related to inputs v1, v2 and v3 by expression vout= -(3v1+5v2+8v3). assume max permitted resistor value= 200k. use only one op amp

  Explain how much faster do ammonia molecules effuse

How much faster do ammonia (NH3) molecules effuse than carbon monoxide (CO) molecules? RATE OF NH3 effusion/rate of CO efusion

Reviews

Write a Review

 

Similar Q& A

  Goals-government-social structure and religion

Compare and contrast the early British North American colonies; for example, the Virginia colony and the Massachusetts Bay colony: in terms of their goals, government, social structure, and religion.

  Lambda is the thermal conductivity of ice

where lambda (=2 W/(m K)) is the thermal conductivity of ice, deltaT is the temperature difference between top and bottom of ice layer, and deltaz is the thickness of the layer.

  Local supermarket uses the slogan it''s your store

Your local supermarket uses the slogan "It's your store." However, when you asked one of the stock people to help you find a bag of chips he told you it was not his job and that you should look a little harder.

  Ralph ellison’s invisible man

Which statement best describes Ralph Ellison’s Invisible Man?

  Imposition of limits on the right to privacy

In 200 words please explain. Do you think that the threat of terrorism in the United States justi?es the imposition of limits on the right to privacy?

  Major functions of micronutrients

What are some of the major functions of micronutrients? What are some different ways you might ensure that you get all the necessary daily nutrients?

  Connections and provide one example of something

Describe each of the connections and provide one example of something that schools are currently doing and one example of something, in your opinion, they are lacking.

  Louisiana purchase

All the following statements about the Louisiana Purchase are true EXCEPT

  Significant period of transition

Describe a significant period of transition in your life. How can different theoretical perspectives be applied to understanding your responses during and following this period

  Main events of the korean war and cuban missile crisis

"Identify and analyze the main events of the Korean War and Cuban Missile Crisis. Then assess how these events affected the relationship between the United States and the Soviet Union.

  Compare and contrasting the violations of conduct

Discuss the similarities and differences in discipline, misconduct and overall outcome of the cases.

  Beliefs in everyday life and syllogisms

Explain the thinking process you used to identify the categorical propositions in these syllogisms. Identify any premises or conclusions with which you did not agree or which you believe to be false.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd