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
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
|