Question: Intro to JAVA programming: Instructions is below, I keep getting an error I am not sure what is wrong code is also below, help would

Intro to JAVA programming: Instructions is below, I keep getting an error I am not sure what is wrong code is also below, help would be appreciated thank you!

Intro to JAVA programming: Instructions is below, I keep getting an error

public class TenCirclesViewer { public static void main(String[] args) { int x = 5; int y = 10; int r = 10; Line vertical = new Line(x, y, x, 200); vertical.setColor(Color.RED); vertical.draw(); Line horizontal = new Line(x, y, 200, y); horizontal.setColor(Color.RED); horizontal.draw(); for (int i = 0; i   Complete the TenCirclesviewer class to draw ten circles that have radius of 10, 20, , 100?They all touch the line x-5 at the left and the line y = 10 at the top. (They are tangent to the lines) Draw the smallest circle first. You must use a loop in your solution. Another way to look at this is that the circles are inside a right angle consisting of the lines x = 5 and y = 10 The circles are tangent to the sides of the right angle Here is an image with the tangent lines drawn in red.  Complete the TenCirclesviewer class to draw ten circles that have radius of 10, 20, , 100?They all touch the line x-5 at the left and the line y = 10 at the top. (They are tangent to the lines) Draw the smallest circle first. You must use a loop in your solution. Another way to look at this is that the circles are inside a right angle consisting of the lines x = 5 and y = 10 The circles are tangent to the sides of the right angle Here is an image with the tangent lines drawn in red

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!