Skip to content

Proposal for new exercise: ResistorColor (Resistor Series #1) #1458

Closed
@emcoding

Description

@emcoding

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.

image

We're planning to have a series of Resistor-* exercises, that are building up to decoding 4-6 band resistor color codes.

  1. 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.
    schermafbeelding 2019-02-10 om 13 15 39

See PR #1457

  1. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions