Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

How does a computer program work?

Sumit Rawal answered on May 7, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • how to program
  • what is a computer
  • how to programm
  • What is computer
  • what is a program
  • how to program

  • How does a computer program work?

    0

    This course aims to show you what the Python language is and what it is used for. Let's start from the absolute basics.

    A program makes a computer usable. Without a program, a computer, even the most powerful one, is nothing more than an object. Similarly, without a player, a piano is nothing more than a wooden box.

    A computer screen with Python logo

    Computers are able to perform very complex tasks, but this ability is not innate. A computer's nature is quite different.

    It can execute only extremely simple operations. For example, a computer cannot understand the value of a complicated mathematical function by itself, although this isn't beyond the realms of possibility in the near future.

    Contemporary computers can only evaluate the results of very fundamental operations, like adding or dividing, but they can do it very fast, and can repeat these actions virtually any number of times.

    Imagine that you want to know the average speed you've reached during a long journey. You know the distance, you know the time, you need the speed.

    Naturally, the computer will be able to compute this, but the computer is not aware of such things as distance, speed, or time. Therefore, it is necessary to instruct the computer to:

    accept a number representing the distance;

    accept a number representing the travel time;

    divide the former value by the latter and store the result in the memory;

    display the result (representing the average speed) in a readable format.

    These four simple actions form a program. Of course, these examples are not formalized, and they are very far from what the computer can understand, but they are good enough to be translated into a language the computer can accept.

    Language is the keyword. 

    Popularity 3/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on May 07 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.