Question: Complete the following code such that the program gives the required output. Sample runs Input 1: 2.500 Output 1: 2.5(0.0,0.0) area: 19.625 Input 2: 4.27.36

Complete the following code such that the program gives the required output. Sample runs Input 1: 2.500 Output 1: 2.5(0.0,0.0) area: 19.625 Input 2: 4.27.36 Output 2: 4.2(7.3,6.0) area: 55.3896 \begin{tabular}{r|c} 1 & public class Circle \{ \\ 2 & public static final double PI =3.14; \\ 3 & private double radius; \\ 4 & private double x,y; \\ 5 & \\ 6 & public Circle(double radius, double x, double y ) \{ \\ 7 & this.radius = radius; \\ 8 & this. =x; \\ 9 & this.y =y; \\ 10 & \\ 11 & \\ 12 & // your code starts here \\ 13 & \\ 14 & // your code ends here \\ 15 & \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
