Question: Write a C program that asks the user to Enter the coordinates (x1, y1) which is the center of a circle with radius 1. Enter

Write a C program that asks the user to Enter the coordinates (x1, y1) which is the center of a circle with radius 1. Enter the coordinates (x2, y2) of a point in the Cartesian plane Prints whether point in (x2, y2) is inside, on the boundary, or outside the circle. Your program should be interactive and ask the user if he/she wants to repeat another calculation by pressing any key, or enter q to quit. Using, in between %f in scanf function above allows a user to type, between the two numbers when he/she enters the coordinate. Sample code execution: Red is entered by a user Enter coordinates (x1, y1): 0, 0 Enter coordinates (x2, y2): 1, 0 (1.0, 0.0) is on the boundary of a circle of radius 1 centered at (0.0, 0.0) Do you want to continue (q to quit)? Enter coordinates (x1, y1): Enter coordinates (x2, y2): 0.5, 0.5 (0.5, 0.5) is inside a circle of radius 1 centered at (0.0, 0.0) Do you want to continue (q to quit)? Enter coordinates (x1, y1): 1, 1 Enter coordinates (x2, y2): 1, 0 (1.0, 0.0) is on the boundary of a circle of radius 1 centered at (1.0, 1.0) Do you want to continue (q to quit)? Enter coordinates (x1, y1): 1, 2 Enter coordinates (x2, y2): -5, 5 (-5.0, 5.0) is outside a circle of radius 1 centered at (1.0, 2.0) Do you want to continue (q to quit)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
