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

Questions Cloud

How many grams of calcium sulfate can dissolve in water : The solubility product constant of calcium sulfate,CaSO2 is 7.10*10^-5 . How many grams of calcium sulfate can dissolve in 53.5 of pure water
Find the flux of earths magnetic field : Find the flux of Earth's magnetic field of magnitude 5.00 cross 10-5 T through a square loop of area 20.0 cm2 for the following when the field is perpendicular to the plane of the loop
Write declaration for function named validateeyecolor : A function must be defined or declared above the locations in the source code file from where it is called. We declare a function by writing a function declaration (which is a statement so it ends with a semicolon).
Analyze the internal environment of the company : analyze the internal environment of the company you researched to determine that company's strengths and weaknesses.Based on the strengths and weaknesses you discovered, determine what steps the company could take to positively impact the company'..
Typical two-dimensional graph from mathematics : 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 negati..
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

Reviews

Write a Review

Other Subject Questions & Answers

  Identfy sex or gender as a requirement for legal marriage

You are going to address the Virginia State Legislature conceringng your support for legislation to not identfy sex/gender as a requirement for legal marriage. What techniques, and why, would you use in attemping to get the legislature to consider..

  The application of nanotechnology to energy production

Its an essay of 1000 words. 3 book sources are needed and also one internet source. The topic is "The application of nanotechnology to energy production"

  Relevant laws to domestic partner benefits

What are the employment laws that are relevant to domestic partner benefits and how these laws impact employer's policies. Bearing in mind a detailed explanation of what domestic partner benefits at the work place

  One historian claims that in the gilded age

One historian claims that in the Gilded Age, "Democrats were separated from Republicans more by accident of national origin, geography, history, and emotion rather than by economic issues." Elaborate.

  Intended brand message-advertising agency

HP’s advertising agency assembles words and illustrations into an advertisement that will  convey the company’s intended brand message. In the communication process, HP is

  Speech on malpractice insurance

During her speech on malpractice insurance, the head of the local branch of the American Medical Association consistently avoided making eye contact with her audience.

  Role of research and statistics in the field of psychology

Prepare a paper in which you examine the role of research and statistics in the field of psychology.

  Describe the term culturally responsible behaviour

What do you understand by cultural homogenization especially in the context of globalization Describe the term culturally responsible behaviour and explicitly discuss the attributes and ways to promote such behaviour in the tourism context

  What did theodore roosevelt mean

What did Theodore Roosevelt mean when he said the US should be the 'policemen' of the Caribbean?

  Why is affirmative action necessary now

Why is affirmative action necessary now? No minimum word count. Need a reference in APA format

  Calculate a parcels air temperature

How do I calculate a parcels air temperature once it reaches a specific height? With the parcels temperature at ground level being 21 degrees celsius and the dew point -8 degrees celsius and the height being 2300 m.

  How are soil texture parent material and weathering related

How are soil texture, parent material, and weathering related?  What factors are needed for best soil and plant growth?  What is soil erosion and soil desertification, and how does each one happen?

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