The School of Computer and Security Science wants to develop a digital billboard for ECU Open Days. Your job is to write a Java program to drive the billboard display. The real display will be built using a grid made up of LEDs, but we will simulate the hardware, using a graphical display with a grid of small squares that can be either black or white, as in the image below. Here nearly all the squares are black, and just a few have been turned white, making up the letters of the word “spare”. See image.
In the picture below, the display has been blown up, grid lines added, and white and black switched around, so that you can see how the letters are made up (the grid cells are all supposed to be the same size). See image.
This is the second stage of the Workshop Assessment Task. For details of the task, dues dates, and assessment value, see WorkshopAssessmentTask.pdf on BlackBoard, under Assessments.
Requirements for Stage 2: In Stage 1, you wrote a Java program that uses the DigitalBillboardFrame class to create a display that looks like this: (see image on stage 1)
For Stage 2, you are to write a similar program that can display other words made out of these letters. Your program should
This is the third stage of the Workshop Assessment Task. For details of the task, dues dates, and assessment value, see WorkshopAssessmentTask.pdf on BlackBoard, under Assessments.
Requirements for Stage 3: In Stage 2, you wrote a program that displays messages entered by the user using a digital billboard display. The requirements for Stage 3 are identical, except that your program must implement and use the following methods: See image.
The method writeText should draw the message text on the digital billboard, starting with the top-left corner of the first letter x cells from the left and y cells from the top. This method should call the method writeLetter to draw each letter, c, of the message in the correct location. Finally, writeLetter should use a switch statement to decide which of the methods write_s, write_p, write_a, write_r or write_e to call. Obviously, write_s should be used to draw the letter ‘s’ etc.
This is the fourth stage of the Workshop Assessment Task. For details of the task, dues dates, and assessment value, see WorkshopAssessmentTask.pdf on BlackBoard, under Assessments.
The requirements for Stage 4 are identical to those for Stage 3, except that your program must make use of arrays to replace all the methods for drawing a particular with one method.
The methods See image.
are all to be replaced by a new method See image.
This method is called no matter which letter is to be drawn, but a different pixels array is passed as the last parameter, depending on which letter it is.
This is the fifth stage of the Workshop Assessment Task. For details of the task, dues dates, and assessment value, see WorkshopAssessmentTask.pdf on BlackBoard, under Assessments.
Requirements for Stage 5: The requirements for Stage 5 are identical to those for Stage 4, except that your program must now handle more letters and characters, and the array data for drawing them is to be read from a text file.
This is the fifth stage of the Workshop Assessment Task. For details of the task, dues dates, and assessment value, see WorkshopAssessmentTask.pdf on BlackBoard, under Assessments.
Requirements for Stage 6: The requirements for Stage 6 include those for Stage 5, except that