Question: Problem in Java In this projectyou will create a robot class. The robot objects move within a grid similar to the 3x3 grid shown below

Problem in Java

Problem in Java In this projectyou 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

In this projectyou 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 dedared 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 integertype variable for the x component of the location of the robot on the grid An integertype 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 default constructor places the robot at location (0,0) and payload to character space: "(empty) a. b. A constructor that receives three parameters to initialize the private data members. c. Include a set and get method for each of the private data members. d. Include a member function print()that prints the location of the robot on the grid as well as its load. e. Method pickup[int lx, int ly) with boolean return type. This method examines the current location of the robot and if not at location (Ix, y). it should display a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!