Closed
Description
Resistors have color bands. Each color represents a number. Resistor can have up to 6 bands, and together they describe the resistance value in Ohms, together with the tolerance and the temperature coefficient.
We're planning to have a series of Resistor-* exercises, that are building up to decoding 4-6 band resistor color codes.
- The new exercise ResistorColor
The first and most basic one is just reading the (first) band's color from an array and return its numeric value.
See PR #1457
- This is supposed to be part of a series of Resistor related exercises, in ascending complexity:
- Reading the first two bands and combine them to a number
- Reading TriBand, and returning a value in Ω (Ohms) or K Ω
- Reading 4 to 6 bands, returning the value in Ohms, the tolerance and the temperature coefficient. In those resistors, the meaning of the 3rd and 4th band is depending on the total number of bands.
Coming soon!
Metadata
Metadata
Assignees
Labels
No labels