associative array of colors for both resistance and tolerance
changed name of variable and resumed calculation into single line
just changing notation of array definition. i find this one better
short named vars for storage of inputs values
just commenting