Question

5) (1 point) Fill correct parameters instead of the blanks to produce the given circle and square. Assume that scene is on st
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Circle circle= new Circle(200,200,200); // center of the circle (x,y) = (200, 200) and radius of the circle is 200

circle.setFill(Color.YELLOW);

Rectangle rect1=new Rectangle(200,200,200,200); //coordinates (x,y) of upper left of triangle is (200,200). width = 200, height = 200

rect1.setFill(Color.RED);

Group group=new Group(circle,rect1,rect2);

Scene s=new Scene(group, 400,400);

Add a comment
Know the answer?
Add Answer to:
5) (1 point) Fill correct parameters instead of the blanks to produce the given circle and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a JavaFX application that displays 10,000 very small circles (radius of 1 pixel) in random...

    Write a JavaFX application that displays 10,000 very small circles (radius of 1 pixel) in random locations within the visible area. Fill the dots on the left half of the scene red and the dots on the right half of the scene green. Use the getWidth method of the scene to help determine the halfway point. This is what I have so far: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.shape.Circle; import javafx.scene.paint.Color; import javafx.stage.Stage; import java.util.Random; import javafx.scene.Group; public class Class615...

  • Consider the below excerpt of a Java program. Fill in each of the blanks (____) with...

    Consider the below excerpt of a Java program. Fill in each of the blanks (____) with the value returned by the method call that is given after the == operator.                public class AShape {       public int match(AShape p)        { return 1; } } public class Rectangle extends AShape {      public int match(AShape p)        { return 2; }    public int match(Rectangle p)   { return 3; } } public class...

  • 10. 'Circle’ the correct answer (option1/option2/option3) and Fill in the Blanks in the following statements. (4...

    10. 'Circle’ the correct answer (option1/option2/option3) and Fill in the Blanks in the following statements. (4 marks) I. The first crystal structure of a protein was the structure of II. The prosthetic group is located inside this protein, is the Iron/ Heme/ Pyrrole ring(s). III. In the quaternary structure of a protein molecule, each polypeptide chain is called the IV. The overall structure of hemoglobin can be represented as V. The binding pattern of O, in hemoglobin exhibits free VI....

  • Q2-Fill in the blanks by correct words/figures. Answer only 7 point . . (1) An overcurrent...

    Q2-Fill in the blanks by correct words/figures. Answer only 7 point . . (1) An overcurrent relay having a current setting of 125% is connected to a supply circuit through a current transformer of ratio 400/5. The pick-up value will be (2) The pick-up value of a relay is 7-5 A and fault current in relay coil is 30A. Its plug-setting multiplier is (3) Back-up protection functions when (4) The minimum relay coil current at which the relay operates is...

  • . Q2-Fill in the blanks by correct words/figures. Answer only 7 point (1) An overcurrent relay...

    . Q2-Fill in the blanks by correct words/figures. Answer only 7 point (1) An overcurrent relay having a current setting of 125% is connected to a supply circuit through a current transformer of ratio 400/5. The pick-up value will be ............... (2) The pick-up value of a relay is 7.5 A and fault current in relay coil is 30A. Its plug-setting multiplier is .......... • (3) Back-up protection functions when ...... (4) The minimum relay coil current at which the...

  • Question 6 (1 point) Fill in the blanks. Pinterest claims that 0.27 of their app users...

    Question 6 (1 point) Fill in the blanks. Pinterest claims that 0.27 of their app users are men. In a sample of 72 randomly chosen app users, around Assume each pick is independent. of them will be men, give or take 0 1) 19.44,14.20 2) 72,3.767 3) 19.44,0.27 )3.767,19.44 5) 19.44,3.767 4

  • 2. Find the error(s), correct it, and write output. Point 5 package javaapplication154 import javax.swing.* import...

    2. Find the error(s), correct it, and write output. Point 5 package javaapplication154 import javax.swing.* import java.awt. import java.awt.Color publie class JGraphicsPanel extends JPanel f public JGraphiesPanel(Color color) f this.setBackground(color); public void paint(Graphies super.paint0; setColor(0,0,0); filloval(10, 5, 40, 40); fillOval(60, 5, 40, 40); package javaapplication154; import java.awt.Color; import javax.swing.JFrame; public class JavaApplication154 public static void main(Stringl) args) [ JFrame frame- new JFrame( "Using colors"); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE); JGraphiesPanel GraphiesPanel-new JGraphiesPanel(Color.RED); frame.setSize( 400, 180); frame.setVisible );

  • please fill in all the blanks пл. P (1 point) Note: The formulas for the Fourier...

    please fill in all the blanks пл. P (1 point) Note: The formulas for the Fourier transform are often given in the form = L f(z)cos ( dz, with the outside the integral. Computing these integrals will often involve u- substitutions, integration by parts, and other integration techniques that will produce all kinds of constants. With the way these problems are asked in WeWork, it would be hard to keep track of when constants should be factored out or not,...

  • PART I: KINDLY FILL IN THE BLANKS THE REQUIRED WORDS TO THE FOLLOWING QUESTIONS: IN READABLE...

    PART I: KINDLY FILL IN THE BLANKS THE REQUIRED WORDS TO THE FOLLOWING QUESTIONS: IN READABLE WRITTINGS AND EACH CORRECT ANSWER IS WORTH (1 POINT) 1) The study of the Strength of Lead in a quantity of 99 Pencils involves a type of Population called 2) A time series plot that exhibit a repetitive variability over different periods of time is called 3) In a chemical process the plot of a sample's data in a control chart is deemed to...

  • 4 & 5 please 4. (1 point) Circle the correct responses: A yellow shirt (absorbs/reflects) blue...

    4 & 5 please 4. (1 point) Circle the correct responses: A yellow shirt (absorbs/reflects) blue light and (absorbs/reflects) yellow light. 5. (1 point) Circle the correct response: Young's double slit experiment shows that light sometimes behaves like a (wave/particle).

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT