How Computers Work

This purpose of this activity is to give the students a basic sense of how computers work by acting out a simple computer simulation.

This project works best if the students work together in groups of 2 or 3. There are three tasks that need to be performed:

For a group of three, have one person assigned to each of these tasks. For groups of two, have one person handle the Display and the other act as both the CPU and ALU/Memory.

Here's what each person should do:

Display

The person acting as the Display should use this worksheet to record what is being shown on the computer's display.

ALU/Memory

The person acting as the ALU/Memory should use this worksheet to keep track of the current x and y values.

CPU

The person acting as the CPU takes one of the following programs and runs the program by passing information to the ALU or the Display.

Example

This is a simple example with three students:

The process is as follows:

Basic computer simulation - Followup

Read this section after you've finished the activity.

The purpose of the simulation exercise is to give you a small taste of what it is that computers do. The single-most important thing that you should learn from this exercise is the following:

The computer had no idea what was being drawn on the display - it was just mindlessly following the instructions in the program.

Computers do not "understand" what they are doing. Drawing a picture of a cat is the same (from the computer's perspective) as drawing a picture of a dog - it's just a series of instructions to execute. Since computers are simply executing the instructions in the program, it is your responsibility (as the programmer) to write the program correctly. If there is a mistake in the program, the computer will still go ahead and try to execute the program as written.

Other things to think about: