Design a program for robot, JAVA Programming

Assume all the obstacles are of height 4 units and the blocks are of heights 1 (bottom), 2 (top), 1 and 2 (top) units respectively.  Complete the control() method of the RobotControl class to move all the blocks to the respective targets.  

Sample call:  java Robot

Allow the user to supply the heights of the 6 obstacles via command line arguments, where the heights of the bars may vary from 1 to 8.  Complete the control() method of the RobotControl class to move all the blocks to their respective target locations.

Sample:   java Robot 786483. Based on these arguments, int array  barHeights[] will be automatically set, as in: barHeights[0] = 7; barHeights[1] = 8;  ....  barHeights[5] = 3;

Allow the user to supply the heights of the 6 obstacles as well as the heights of the blocks (which may vary in number) via command line arguments. Complete the control() method of the RobotControl class to move all the blocks to their respective targets.

Sample:   java Robot  786483 13241. Based on these arguments int arrays  barHeights[], blockHeights[] will be automatically set, as in .

   barHeights[0] = 7; barHeights[1] = 8;  ....  barHeights[5] = 3;

   blockHeights[0] = 1; blockHeights[1] = 3; ... blockHeights[3] = 1;

Posted Date: 3/18/2013 1:30:41 AM | Location : United States







Related Discussions:- Design a program for robot, Assignment Help, Ask Question on Design a program for robot, Get Answer, Expert's Help, Design a program for robot Discussions

Write discussion on Design a program for robot
Your posts are moderated
Related Questions
how do I use constructors in java and how do I apply them


A user interface control that outputs data to a client or permits a user to input data to a JavaServer Faces application.

The assignment is implementing a CLI in Java with several usable commands, using Threads.

implementation of DT in netbeans

The AOP module is used for developing aspects for our Spring-enabled application. Much of the support has been given by the AOP Alliance in order to ensure the interoperability amo

We require responsible and serious programmer Project Description: Big Data and On-line tools Website Liferay - JAVA - Portlets - JSP and JSF Skills required: J2EE,

I need Android Kiosk Mode Project Description: I need an Android platform developer to develop an app when device start it start into kiosk mode. Only browser window open a c

Java Is For Real Java has a lot of hype however much of it is deserved. Java is very well matched for many modern problems Using more CPU time and memory but less programmer

Project Description: A web developer is required to finish a webcam site with basic account management and voting functionality. The website can make use of a third party fla