Computer programming is defined as the creating of a sequence of instructions that enables the computer to perform the desired action. When programming, it is necessary to understand and analyze what action or procedure is desired from the computer before beginning the actual program. In order to create a message that tells the computer what actions it should perform and that can be understood by the computer, an algorithm has to be created. An algorithm is more or less an illustration of logic written in software that expresses what actions the computer should perform in a logical order.
This is an example algorithm
Programming is not only used to tell computers to perform various actions, but also in robots. When building my robot with my group, we performed very basic programming by creating a very small algorithm. Our algorithm instructed our robot to perform very simple tasks. The most complex of which was to order the robot to continue to move until within a certain distance of a colored brick, and then to drag the brick as the robot moved backwards. In order to perform programming, one must possess a great amount of logic.
No comments:
Post a Comment