Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions