[previous_group] * [up] [next] [next_group]

The Five Steps

Understand the problem

Do a small example by hand

Write an algorithm for solving the problem

Translate the algorithm into a programming language (like C)

Before beginning any implementation, let us first discuss the organization we will use for the source code files. It makes sense to store the code for each module in its own file or files.

the Operands Module,
This module is divided into two submodules, each implemented in its own file:
the Operators Module,
the Results Module,
This module is divided into two submodules, each implemented in its own file:
the Display Module.
I have written the code for the Display module. I will only give you the compiled module, display.o, with functions with prototypes in display.h.
and the Driver Module
You will be writing 5 drivers in developing this project. See the implementation for details.
In addition, we may be making use of functions provided in chrutil.c with prototypes in chrutil.h.

Even with all this organization, implementing this project is a big task. So we will take a bottom up approach - developing small portions of the overall program, one at a time. We will then test each portion using a "throw away" driver to make sure it works before going on to the next part. We will require you to develop and test your calculator in pieces as described in the implementation.

Test the program


[up] to Overview.

[next]