Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prob. 1 - Which region? Region 2 Region 1 Region 3 Region 4 Write a program that reads a point (x, y) from a user

image text in transcribed

Prob. 1 - Which region? Region 2 Region 1 Region 3 Region 4 Write a program that reads a point (x, y) from a user and prints its region or indicate that it is on one of the axes. For example Enter x y: 3-1 This point is in Region 4 Enter x y: -1-5 This point is in region 3 Enter x y: 0 5 ??????? Hint: A point located on one of the axes is not considered to be in a quadrant. It is simply on one of the axes. Whenever the x-coordinate is 0, the point is located on the y-axis. Similarly, any point that has a y-coordinate of 0 will be located on the x-axis

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions