A simple C application to calculate resistance and power.