Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the first questin, Please help me with my computer science class quiz question, it's due tommrow! Thanks! 2 1. Complete the code in

This is the first questin, Please help me with my computer science class quiz question, it's due tommrow! Thanks!

image text in transcribed

2image text in transcribed

1. Complete the code in the Shape Quiz class so that it will generates the GUI showing below. It contains five squares in blue, and four arcs in red. The size of the GUI window is 400 by 400. Each square is orner that are of the same twice as large as the square below it except two squares at the right bottom c size. (4 pts) import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.shape. Rectangle; import javafx.scene.shape.Arc; import javafx.scene.shape.ArcType; import javafx.scene.layout. Pane; import javafx.scene.paint.Color; import javafx.geometry. Insets; ShapeOQuiz Red public class ShapeQuiz extends Application public void start (Stage primaryStage) Pane panenew Pane ); pane.setPadding (new Insets (5, 5, 5, 5)) //create an array of Rectangle Rectangle) rectArraynew Rectangle [5]; //create each of the five squares //Use a for loop to set each rectangle blue color and add it into the pane for (int = 0;

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_2

Step: 3

blur-text-image_3

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Carry out an interview and review its success.

Answered: 1 week ago