Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a javafx application that draws 7 rows of 10 random colored circles Goal: Write a JavaFX Application that draws seven rows of ten randomly

Write a javafx application that draws 7 rows of 10 random colored circles image text in transcribed
Goal: Write a JavaFX Application that draws seven rows of ten randomly colored circles How to Do It Look at the book's Boxes (isting 6.6). My example umbrella program may also be useful. Although you will create 70 Circle objects, you do not need 70 variables. Each teration of a doubly-nested loop creates one Circle and puts it in a Group. After the Group has been created, put into the Scene. Each iteration of the inner loop creates a circle and randomly picks a color from a selection of collors Use variables and calculation rather than hard-coded literals where appropriate. For example, the center of each circle is caloulated by dividing the scene width by the number of columns and the scene height by the number of rows. Select the color for each circle from a selection of eight or so colors. Generate a random int to determine which of the colors to pick. You will need a Random object. A list of colors is on page 140 of the book. Start the program with a documentation header that says what it is, who did it, and when. BlueJ gives you some of this automatically, but you have to fill in some things. Also, have some line- by-line documentation that says what is going on

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

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. What we can learn from the past

Answered: 1 week ago

Question

Write a letter asking them to refund your $1,500 down payment.

Answered: 1 week ago