Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help writing the step() method for this project, as well as the MarqueeDa

ID: 3767024 • Letter: I

Question

I need help writing the step() method for this project, as well as the MarqueeDataManager class in general. In theory all I have to write is the constructor it mentions in the directions, as well as the step() method. I am in the first level computer science class, so I am only supposed to used 2-D arrays and interfaces, and other beginning code. I am very confused and any help would be appreciated. Everything else has been implemented for me except the MarqueeDataManager file.

Here are the instructions for the project:

https://www.cs.umd.edu/class/fall2015/cmsc131/content/projects/Marquee/Marquee.html

Username is cmsc131 password is java131

In addition, they also gave us these project notes http://www.cs.umd.edu/class/fall2015/cmsc131/content/projects/Marquee/MarqueeProjectNotes.pdf

Same username and password.

Explanation / Answer

Below is a dummy(pseudo) implementation of MarqueeDataManager class -

---------------------------------------

import java.awt.Color;
import cmscMarqueeLib.*;

public class MarqueeDataManager implements DataManager {

   private String message; //message to display as marquee
   private int animationPattern; //animation pattern - 0 for this assignment
   private Cell[][] shiftingOverArray; //shifting over array
   private Cell[][] getSubArray()
   {
       //returns a subarray from shiftingOverArray
       switch(stepCount) //step count some variable required to track steps
       {
           case 0:
               //returns as per call 1
           case 1:
               //returns as per call 2
           //.....  
       }
       return result;
   }
   /**
   * constructor
   */
   public MarqueeDataManager(String message, int animationPattern) {
       this.message=message;
       this.animationPattern=animationPattern;
       shiftingOverArray=generateEmptyCellArray();
   }
  
   @Override
   public Cell[][] step() {
      
       Cell[][] result=getSubArray();
      
       return result;
   }

}

-------------------------------------------

For the precise implementation of constructor and step() method, access to codebase (cmscMarqueeLib and other classes) is necessary. It will be good if you can make them available.