Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. If x or y is 0, the code will print out "The point is on x or y axis". For example, if your input x is 2.5, and y is 1, it will print out "The point is in Quadrant One"; if the input x is -2.3, and y is -3.2, it will print out "The point is in Quadrant Three"; if the input x is 0, and y is 20, it will print out "The point is on x or y axis ".

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.5: A Closer Look: Loop Programming Techniques
Problem 15E: (Program) Write a program to simulate the rolling of two dice. If the total of the two dice is 7 or...
icon
Related questions
Question

language c not c++

Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane
and prints a message telling either an axis on which the point lies or the quadrant in which it is
found. If x or y is 0, the code will print out "The point is on x or y axis".
For example, if your input x is 2.5, and y is 1, it will print out "The point is in Quadrant One"; if
the input x is -2.3, and y is -3.2, it will print out "The point is in Quadrant Three"; if the input x
is 0, and y is 20, it will print out "The point is on x or y axis ".
Requirements:
1. The inputs of x and y should be float data type.
2. The input should prompt a message on the screen to ask for the input x and y.
Transcribed Image Text:Procedure 2. Write a program that takes the x-y coordinates of a point in the Cartesian plane and prints a message telling either an axis on which the point lies or the quadrant in which it is found. If x or y is 0, the code will print out "The point is on x or y axis". For example, if your input x is 2.5, and y is 1, it will print out "The point is in Quadrant One"; if the input x is -2.3, and y is -3.2, it will print out "The point is in Quadrant Three"; if the input x is 0, and y is 20, it will print out "The point is on x or y axis ". Requirements: 1. The inputs of x and y should be float data type. 2. The input should prompt a message on the screen to ask for the input x and y.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning