What is Programming?

What is Programming?

Marcona
Views: 858 | Community Opinion: 1

Tags..  Programming  Software Engineering  Computer Programming

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Harish Mohita Said..

Programming is a special language that both you and the computer can understand. In order for you and the computer to communicate you must first acknowledge the many parts to a program. A program is composed of many commands and symbols as shown in the box below.
task main ( )
{
OnFwd(OUT_A);
OnFwd(OUT_C);
Wait(100);
Off(OUT_A + OUT_C);
}


The box above contains a program. The curly brackets, { }, at the beginning and end of the program help the computer to recognize where the program starts and ends. Each line contains a separate command that ends with a semi-colon, ; ,for example, OnFwd(OUT_A); is a command, which helps the computer know when that specific command is complete. OUT_A and OUT_C each represent a different motor. Each motor is identified in the program by the OUT_A and OUT_C commands, which then moves the motors, which in turn moves the gears in order to move the wheels. One special command is the Wait command. This command tells the computer how long to wait before proceeding to the following command, which in this case is the stop command. In other words the Wait(100); command takes 100 centiseconds to complete the two previous commands.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: