Question: app A package ( folder ) where you will place your implementation for the DrawingApp project . Make sure you fix any problems associated with
app A package folder where you will place your implementation for theDrawingAppproject Make sure you fix any problems associated with the DrawingApp project. Notice that just because you got a in the DrawingApp project, it does not mean it is bugfree. The secret and release tests for this project could find some of these bugs. If you failed some secretrelease tests, a TA during office hours, could provide information about the tests. You can resubmit your code and see releasesecret tests results in the submit server for the Drawing App project.
gui A package folder providing code that supports the graphical display and animation of a diagram. You will use the methods provided by the GraphicalUtilities.java class. Do not modify anything in this package.
system A package folder where you will implement the classes associated with this project. Sample Driver
The following driver and associated output illustrates the functionality of some of the methods you need to implement.
public class DriverExample public static void mainString args char arrayABCDEF; String answer "Original:
; answer getTwoDimArrayStringarray; answer
After one top rotation:
; TwoDimArrayUtil.rotateTopOneRowarray; answer getTwoDimArrayStringarray; answer
After two top rotations:
; TwoDimArrayUtil.rotateTopOneRowarray; answer getTwoDimArrayStringarray; answer
After left rotation:
; TwoDimArrayUtil.rotateLeftOneColumnarray; answer getTwoDimArrayStringarray; char arrayGHIJKL; char arrayMNOPQR; answer
After left right append:
; answer getTwoDimArrayStringTwoDimArrayUtilappendLeftRightarray array; answer
After top bottom append:
; answer getTwoDimArrayStringTwoDimArrayUtilappendTopBottomarray array; answer
Animation of horizontal bars:"; int maxRows maxCols bars animationType ; char colorR colorG colorB; HorizontalBars horizontalBars new HorizontalBarsmaxRows maxCols, bars, color color color animationType; answer
Original:
; answer getTwoDimArrayStringhorizontalBarsgetBoard; for int i ; i ; i answer
Animation Step: i
; char nextAnimationStep horizontalBars.nextAnimationStep; answer getTwoDimArrayStringnextAnimationStep; System.out.printlnanswer; private static String getTwoDimArrayStringchar array if array null throw new IllegalArgumentExceptionInvalid parameter getTwoDimArrayString; String answer ; for int row ; row array.length ; row answer Arrays.toStringarrayrow
; answer Arrays.toStringarrayarraylength ; return answer;
Output
Original: A BC DE F After one top rotation: C DE FA B After two top rotations: E FA BC D After left rotation: F EB AD C After left right append: G H M NI J O PK L Q R After top bottom append: G HI JK LM NO PQ R Animation of horizontal bars: Original: R R R R R RR R R R R RG G G G G GG G G G G GB B B B B BB B B B B B Animation Step: R R R R R RG G G G G GG G G G G GB B B B B BB B B B B BR R R R R R Animation Step: G G G G G GG G G G G GB B B B B BB B B B B BR R R R R RR R R R R R Animation Step: G G G G G GB B B B B BB B B B B BR R R R R RR R R R R RG G G G G G
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
