question archive You will be given the main program class (RoobikRunner)

You will be given the main program class (RoobikRunner)

Subject:Computer SciencePrice: Bought3

You will be given the main program class (RoobikRunner). You will not need to change RoobikRunner.


You  will also be given the skeleton to the Rubik's Cube class (RoobikCube)  and a placeholder class describing the face of a Rubik's Cube  (RoobikFace). You will not have to change RoobikFace.


Your assignment is to:


1)  Implement the RoobikCube constructor. The constructor takes no  arguments and creates and populates an array of RoobikFace objects. Each  RoobikFace should have its own color.


2) Implement the  toString() method of RoobikCube. The output of the method should be the  net of the cube, with the front face in the center, as shown below.


You must use the array in your toString method to receive full credit.


W

.B O G

. Y

. R 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE