ECE 2524

Introduction to Unix for Engineers

Well the basics are down...

Usage

The Resistor Colorband Calculator has very simple instructions for compile and use. It works as advertised with some small bugs that I noticed. The general idea of the project works.

Style

The code is short and simple. Almost everything is written in the main function, so I wonder if this could have been changed. There is only a main and a getColor, but perhaps another method getting the third band value (multiplier) could have been made.

Like I just mentioned, I think the program could have been more modular. Mayver in addition to splitting the code by the third band value, a read in method could have been made.

Philosophy

The code is simple, which is good. It follows the Rule of Simplicity. I like that the base was created, and now the author can add more to it. I think there are a lot of things to add to this program, but since the fundamental works, this shouldnt be hard.

Bugs

The error checking doesnt always work – It only works if the first character is invalid. But if I were to type 5j65, the program ignores the j and stil functions when it shouldnt.

Comments

Overall, I think the project is kind of simple. There isnt an algorithm or anything, just a lot of if loops. Adding some more math would be cool, just to make the code shorter and more functional. There is a lot to add here.