ECE 2524

Introduction to Unix for Engineers

Review of Resistor Calcultator

Usage

The Resistor Colorband Calculator has very easy instructions for compile and usage. The project works as intended but with little error checking. The program only needed: $ clang -o main main.c $ ./main and it is ready to execute program

Style

The code is very simple and easy to use. Unfortunately, the program itself is not modular at all. There is only one function that deciphers the color code. The reading approach is too forgiving. It does not do any error checking except the number of arguments.

Philosophy

This program is a prime example of Simplicity. The only downside to the simplicity of it is that it may be too simple. However, the fundamentals of the program all it to be simple and it will be easy to add on extra features for this project.
- Checks base value and divides by power of 10 to check each of the nine colors

Comment

Room for improvement: - Add a function to check multiplier - Error checking value so it does not accept anything but numbers. (i.e. 3s34 is valid) - Can add other functions such as options to add resistors in parallel and/or series