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

  Recollection of an emotional event

memory refers to a vivid detailed recollection of an emotional event.

  Explain instructional video to be used along with flow chart

Write down the 350-500 word script, below your folw chart, for short instructional video to be used along with flow chart.

  What should the researcher conclude

A college student is interested in whether there is a difference between male and female students in the amount of time spent studying each week.

  Individual social and occupational roles in society

Identify some of the different personality disorders. how these personality disorders would impact an individual's social and occupational roles in society.

  Active teaching-why does active teaching

Active Teaching. Why does active teaching, in which the teacher presents content to students and structures their subsequent practice and application exercises, generally produce more learning than approaches in which students are encouraged to learn..

  Chief motivations of european voyages of discovery

What were the chief motivations of European voyages of discovery, and what, can we say, was/were Columbus' destination(s)?

  What do you mean by visual ambiguity

What are some illustrations of visual ambiguities that you have encountered today

  What are political implications-influences on solar energy

What are the Political implications and influences on solar energy. What are some of the Public opinion such as the media, consumers and community on solar energy technology.

  Concise explanation of plato theory

Please help me with a complete and concise explanation of Plato's Theory of the forms and the myths relating to the Forms, including discussions of the Sun, the Line and the Cave.

  Study and understanding of public policy

Identify two or three academic disciplines, other than political science, that contributes to the study and understanding of public policy. Explain their contribution.

  Factors in cultural assimilation

You have new coworkers at your office name Jorge who is from Central America. He is unfamiliar with American customs and claims that he is undergoing culture shock and needs your help with the adjustment.

  Female buyer

A female buyer is looking at two used cars; one has good gas mileage, and the other leather seats. The buyer has always wanted a car with a leather interior.

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