answersLogoWhite

0


Best Answer

Robot software is the coded commands that tell a mechanical device (known as a robot) what tasks to perform and control its actions. Robot software is used to perform tasks and automate tasks to be performed. Programming robots is a non-trivial task.

Most robot programs have a similar structure. It consists of 4 major parts.

Declarations and Variables

Subroutines and Functions

Initialization

The Main Loop

The smallest lexically and syntactically correct robot program is called Karell ++

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the smallest lexically and syntactically correct robot program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why program which is syntactically correct but semantics incorrect?

If you make a sentence that can be understood but it doesn't relay what you meant then you have a semantic problem.


What are the different types of error that comes in c plus plus programming?

There are 3 different fundamental types of errors in ANY programming language: 1) Syntax errors: code is written incorrectly and can not be used by the computer 2) Logical errors: the code is syntactically correct, but does not do what it is supposed to do. 3) Run time errors: The code is syntactically correct, but when it is executed, the computer enters some sort of illegal state that must be handled in order to proceed, or the program will crash. Run time errors are things like running out of memory, division by zero, segmentation faults and etc...


What is a token in the context of a C program?

smallest individual units of a program


What is correct - each program has or each program have?

"Each" is a singular word, so "Each program has . . ." is correct.


Why scope resolution operator cannot be overloaded?

Generally the operators that can't be overloaded are like that because overloading them could and probably would cause serious program errors or it is syntactically not possible, For instance the sizeof operator returns the size of the object or type passed as an operand. It is evaluated by the compiler not at runtime so you can not overload it with your own runtime code. It is syntactically not possible to do. Even if it was pointer arithmetic relies on the correct value being returned by this operator since the compiler already knows how to calculate the correct value all overloading would do would be to allow you to calculate an incorrect value, something that would almost certainly lead to the program not working correctly. Scope resolution and member access operators work on names rather than values. C++ has no syntax for writing code that works on names rather than values so syntactically these operators can not be overridden. Again what useful purpose would overloading the conditional operator produce? I can think of none.


Which sentence is correct he contributed in organization of program or he contributed in organizing the program?

The latter one is the correct sentence by structure. The correct one is, he contributed in organizing the program.


What is the smallest addressable memory unit in C?

program


In java What is a smallest individual unit in a program?

token


When writing this year's program is use of the apostrophe correct?

Yes, that is correct. Program belongs to year.


Differences between syntax and semantic?

syntax-it is the structure of the program.syntactic analysis checks whether the syntax is correct or not.if any of the punctuation(, ;) or ibraces are missing then the program wud b syntactically wrong... semantic-it means the meaning that the program conveys.whether the meaning is correct or not. for eg sun rises in west this sentence is syntactically right as there is no mistake of grammar bt it convey a wrong meaning as sun never rises in west.... hence it is syntactically right bt semantically wrong


Is this program correct?

no it's not


C program to find the largest and smallest character in a word?

helicopter