Question: In JAVA LANGUAGE PLEASE: Develop an application named Prog3 that tests your Robot class. The test application will ask the user for the robot's name.

In JAVA LANGUAGE PLEASE:

Develop an application named Prog3 that tests your Robot class. The test application will ask the user for the robot's name. It will then instantiate a Robot object using the name. The application will then use a loop to ask the user to enter a direction ( X or Y) to move and the distance. The loop will terminate when the user enters a direction of q ( for quit). Once the loop is done, the program will display the robot's final position and the total distance is traveled.

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!