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

  Interaction in the socialization process

How important do you believe social interaction is in the socialization process? Examine and explain the idea of a status, and determine which one you believe is most influential in socialization. Make sure to provide rich, beneficial example

  Important concepts applicable to implementing IT project

There are two elements the IT manager must understand, track and skillfully intervene about where necessary. The first is to insure the CONTENT to be discussed in the meeting is appropriate, on-target and in the detail necessary to the task.

  Assessing and treating anxiety disorders

I have to pretend I am part of a focus group developing practice guidelines for assessing and treating anxiety disorders. (I believe this is for children considering it is an abnormal child psych course).

  Russian chess master kasparov versus deep blue

How is it possible that a human being can rival the capabilities of most modern computers? Describe your answer.

  Explaining the glass ceiling affect

Provide explanation of what the glass ceiling affect is, a brief history of it and how minorities and women are affected by it with examples.

  Mobile device explosion

How has the proliferation of smartphones, tables, and other connected devices changed the networking landscape? Is this explosion just a matter for cellular carriers, or should those managing WiFi networks be aware of challenges as well?

  Individual being autonomous

Do you think there really is such a thing as an individual being autonomous? I often think of people who strive for complete autonomy as being rather anti-social and in many cases rather dangerous.

  Examine correlation betweenhistorical developments-dual

Write down 1,050- to 1,400-word paper in which you explain major historical developments of U.S. courts. Make sure to outline dual court system (state vs. federal) of United States.

  How will communication take place

Evaluate the role of healthcare managers in emergency preparedness and response for that particular disaster (be specific). Create a table or spreadsheet of the positions necessary to respond, who will carry out those duties, and what type of dutie..

  Media adheres to these regulations

Based upon the government regulations of the media that you read about, do you feel that the media adheres to these regulations?

  Many specific comparisons and contrasts as possible

Choose two of the following 19th century American groups, describing Both what they had in common and what was unique (comparisons and contrasts) in the conditions under which they lived, being sure to make as many specific comparisons and contrasts ..

  Type of measure of disease frequency

Type of measure of disease frequency best describes each of the following scenarios?  Percent of men found to have high blood pressure at their yearly physical. Number of liveborn babies who die of sudden infant death syndrome during the first year o..

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