What is Programming?

Programming is the process of writing code, which is essentially a special form of instructions used to tell the computer to complete a specific task. Programming can be used for basic things like simple addition to complex goals such as making self-driving cars. Essentially, programming powers almost all of the technology around us. It is up to the programmer to use computers to innovate and create new technology. Here is an example of some code:

    public static String toBaseN(int num, int base) {

        String newNum = "";

        while (num > 0) {

            int result = num % base;

            newNum = result + newNum;

            num /= base;

        }

        return newNum;

    }

This specific code snippet converts a number into a different base (you will learn what this means in lesson #4, Number Bases). By the end of TeamsCode’s lessons, you will be able to understand, evaluate, and create this code by yourself.

Lesson Quiz

Which of the following is false?

a. Code is similar to a set of instructions for the computer to interpret and execute.
b. Programming does not use any words in the English language.
c. Programming can be used to do simple or complex tasks.

Written by Chris Elliott

Notice any mistakes? Please email us at [email protected] so that we can fix any inaccuracies.