Question: I don't know how to solve these errors File Edit View Build Project Settings Iools Window Help Asgn1.java /Users/ios/Downloads - jGRASP CSD Java) public static

 I don't know how to solve these errors File Edit ViewBuild Project Settings Iools Window Help Asgn1.java /Users/ios/Downloads - jGRASP CSD Java) I don't know how to solve these errors

File Edit View Build Project Settings Iools Window Help Asgn1.java /Users/ios/Downloads - jGRASP CSD Java) public static void main(String[] args) Scanner scan new Scanner(System.in); Random radius- new Random (); System.out.println( "Enter the top-left coordinates for the rectangular portion: "); String x11scan.next() int xl -Integer.parseInt(x1l) String yll- scan.next( int yl = Integer.parseInt(y11); System.out.println("Enter the bottom-right coordinates for the rectangular portion: ") String x22 = scan.next(); int x2 -Integer.parseInt(22) String y22-scan.next( int y2 -Integer.parseInt (y22) System.out.print ( "Enter the radius of the circular portion of the field: " String radiusscan.nextInt int radius - Integer.parseInt (radius);L int side 1 = x2 - x1; int side2yl- y2; int perimeter-2*sidel 2*side2; double circumference2Math.PI* radius; double fenceLengthperimeter - 2radius 3.0 / 4 * circumference; System.out.println(You will need"+ fenceLength" meters of fence around this field." int rectangleAreasidel side2; double circleArea Math.PIradius * radius; double arearectangleArea 3.0 / 4 circleArea; System.out.println( "You have to cover"+ area square meters with grass."); Asgn1.java Compile Messages jGRASP Messages Run I/O Interactions Line:35 Col:45 Code:0 Top:15 OVS BLK

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!