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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
