EMT1111-Logic and Problem Solving

You must be logged in to reply to this topic.

  • Author
    Posts
  • #12604

    Dr. Benito Mendoza
    Participant

    Remember the kitchen analogy? The computer hardware is equivalent to the appliances, utensils, and other tools used in the kitchen. On the other hand, the recipes executed in the kitchen to produce meals, are equivalent to the computer software or programs executed in a computer.

    Following, this analogy we find this relation between a recipe and a program:
    • A list of ingredients (called variables)
    • A list of directions (called statements) that tell the computer what to do with the variables.

    But how do these variables represent? What kinds of statements are used to manipulate the variables? How do we use variables and why? Could we create programs without using variables?

Viewing 1 post (of 1 total)

   

You must be logged in to reply to this topic.