成人快手

Introduction to programmingWhat is programming?

Programming is writing computer code to create a program, in order to solve a problem. Programs consist of a series of instructions to tell a computer exactly what to do and how to do it.

Part of Computer ScienceProgramming

What is programming?

is writing computer code to create a program, to solve a problem. are created to implement . Algorithms can be represented as or a , and programming is the translation of these into a computer program.

To tell a computer to do something, a program must be written to tell it exactly what to do and how to do it. If an algorithm has been designed, the computer program will follow this algorithm, step-by-step, which will tell the computer exactly what it should do.

What is a programming language?

A is an artificial language that a computer understands. The language is made up of series of that fit together to form . These instructions tell a computer what to do.

A computer can only be programmed using special programming languages such as Python. If you enter a command in a human language, it will cause an error.

There are many different programming languages, some more complicated and complex than others. Among the most popular languages are:

  • C++

Different programming languages work in different ways to give instructions to a computer. For example, in Python programs are built by writing instructions in abbreviated sentences using lowercase words.

Other languages, like Scratch, don't use words at all for the instructions. Instead, Scratch uses colourful blocks and diagrams to build programs. To build a program, the user drags and drops blocks to create actions, like telling a character to move or speak. Each block is like a piece of a puzzle, and when connected, they show the flow of the program.

Programming languages are designed to be easy for a human to understand and write in. However, a computer cannot run programs written in these languages directly. Most programming languages have to be translated into before the computer can the instructions.