Question: This programming project involves writing a graphical JavaFX application which displays a 5x5 grid of circles, where the Red-Green-Blue (RGB) color values for the circles
This programming project involves writing a graphical JavaFX application which displays a 5x5 grid of circles, where the Red-Green-Blue (RGB) color values for the circles are read from a text file.
The program must begin by printing a prompt on the console, asking the user to specify the input file name. After the user types in the file name, the program must open the file and read its contents into a 5x5x3 array of int.
Program:


RGB Color Array This programming project involves writing a graphical JavaFX application which displays a 5x5 grid of circles, where the Red-Green-Blue (RGB) color values for the circles are read from a text file Each line of the input text file contains 3 integer values within the range of 0 through 255, separated by commas. The sample data files provided each contain 25 lines of text. (See example below). Your program should work with any text file that follows this format. Sample input data file 255, 0, 0 255, 255, 0 0, 255, 0 0, 255, 255 0, 0, 255 150, 200, 100 100, 100, 100 0, 190, 255 255, 255, 25!5 50, 255, 255 0, 0, 0 0, 255, 50 0, 0, 255 72, 118, 255 135, 206, 235 244, 164, 96 0, 100, 0 128, 128, 0 50, 205, 50 255, 140, 0 255, 160, 122 255, 165, 0 255, 20, 147 255, 0, 255 0, 255, 255 The program must begin by printing a prompt on the console, asking the user to specify the input file name. After the user types in the file name, the program must open the file and read its contents into a 5x5x3 array of int The contents of this array must be printed on the console, in a format as shown in the sample output below (Notice that the 0-4 array index values are shown, but the "0-2" array index values are not.) Sample console output Enter input filename: colorData.txt 0,0: 255, 0, 0 0,1: 255,255, 00,2: 0,255, 00,3: 0,255,255 0,4: 0, 0,255 1,0: 150,200,100 1,1: 100,100,100 1,2: 0,190,255 1,3: 255,255,255 1,4: 50,255,255 2,0: 3,0: 244,164, 963,1:0,100, 03,2: 128,128, 03,3: 50,205, 50 3,4: 255,140, 0 4,0: 255, 160,122 4,1: 255,165, 04,2: 255, 20,147 4,3: 255, 0,255 0, 0, 0 2,1:0,255, 502,2:0, 0,255 2,3: 72,118,255 2,4: 135,206,235 4,4:0,255,255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
