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

In Java Palayrdp Styles in this project you will create a robot class. The robot

ID: 3851793 • Letter: I

Question

In Java









Palayrdp Styles in this project you will create a robot class. The robot objects move within a grid similar to the 3x3 grid shown below to pick up and carry the letters on the grid to different locations. The grid size should be declared as constants, use a 25x25 grid for our program. The grid size should be declared as constants, use a 25X25 grid for our program. const int RIGHTBOUNDARY-26; const int LEFTBOUNDARY-0 const int TOPBOUNDARY-26; const int BOTTOMBOUNDARY-0; The Robot class must have the following data members and methods: a) The Robot class has three private data members a. b. c. An integer type variable for the x component of the location of the robot on the grid An integer type variable for the y component of the location of the robot on the grid A char type variable "payload" to hold letters as load b) The Robot class must have the following public member functions a. A default constructor places the robot at location (0,0) and payload to character

Explanation / Answer

import java.util.Scanner;
import java.util.Arrays;
public class H4_Minesweeper {
public static void main(String[] args) {
System.out.println("Minesweeper is a very straightforward game, the rules are simple.");
System.out.println("Uncover a mine (x), and the game ends. Uncover an empty square (o), and you keep playing.");
System.out.println("A question mark (?) will represent tiles you have not uncovered yet.");
System.out.println("Uncover a number, and it tells you how many mines lay hidden in the eight surrounding squares.");
System.out.println("Use this information to carefully choose which squares to click.");
System.out.println(" ");
Scanner userin;
String[][] board = new String [9][9];
for (int r = 0; r<board.length;r++){
for (int c = 0; c <board.length;c++){

}
}
}
}   

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote