(Solved) : Java Write Application Circleviewer Uses Loop Fill 15 Red Circles Random X Y Upper Left Ha Q37273757 . . .
This is in Java
Write an application CircleViewer that uses a loop to fill 15red circles, each with a random (x, y) for the upper left-handcorner of the bounding rectangle and a diameter of 30.
Make the x coordinate a random number between 0 and 250(exclusive), Make the y coordinate a random number between 100 and300 (exclusive). The diameter of the circle is 30 pixels. Get the xand then the y coordinate so that you get the same numbers Igot.
- Use the Horstmann graphics package
- Use the predefined color red from the Color class.
- Use the constants provided for the maximum and minimum x, y,and diameter.
- Use this Random object
Random gen = new Random(14682489);
final int MAX_X = 250;
final int MAX_Y = 300;
final int MIN_X = 0;
final int MIN_Y = 100;
final int NUMBER_OF_CIRCLES = 15;
final int DIAMETER = 30;
This is Java, I’ve been stuck on this problem for awhile. Thankyou!
CodeCheck:
http://www.codecheck.it/files/19011601107aqt9n72aorjpmcldlldhb1ou
Expert Answer
Answer to This is in Java Write an application CircleViewer that uses a loop to fill 15 red circles, each with a random (x, y) for…
OR