Question: 1. Suppose you are writing a program which determines, in a two-dimensional coordinate space, whether a point, P(XP, YP), falls inside, outside a circle

1. Suppose you are writing a program which determines, in a two-dimensional

1. Suppose you are writing a program which determines, in a two-dimensional coordinate space, whether a point, P(XP, YP), falls inside, outside a circle or on its edge. The program reads five real numbers. The first two numbers are the x- and y-coordinate of the center, C(xc, yc), of the circle, the 3rd number is the radius, rc, of the circle, and the 4th and 5th numbers are XP and P. Develop the test cases for this program. Expected result Test case Xc Yc Rc Yp To test P inside a circle 0 0 5 2 2 True, inside circle 0 0 5 0 0 5 34 4 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here are some test cases for the program that determines if a point is inside outside or on the edge ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!