Question: Write a program that prompts the user ( in this order ) to enter a point in x and y coordinates, and a radius. Report
Write a program that prompts the user in this order to enter a point in and coordinates, and a radius.
Report if the point is within the circle centered at with the given radius.
For example, the point is outside the circle with radius but is within that circle.
Print "Within circle" for points within the radius
Print "Outside of circle" for points outside of the radius.
The distance formula is:
Example runs:
coordinate:
coordinate:
Radius:
Outside circle
coordinate:
coordinate:
Radius:
Within circle
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
