Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started