@@ -0,0 +1,1682 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage linkingdimmers;%0A%0A/**%0A *%0A * @author student%0A * %0A */%0A%0Apublic enum Color %7B%0A    BLACK(1),BROWN(2),RED(3),ORANGE(4),YELLOW(5),GREEN(6),BLUE(7),PURPLE(7),GREY(8),WHITE(9),GOLD(10),SILVER(11);%0A    %0A    private final int value;%0A    private Color(int value) %7B%0A        this.value = value;%0A    %7D%0A%0A    public int getValue() %7B%0A        return value;%0A    %7D%0A    %0A    public double getMultiplier() %7B%0A        switch (value) %7B%0A            case(1):%0A                return 1;%0A            case(2):%0A                return 10;%0A            case(3):%0A                return 100;%0A            case(4):%0A                return 1000;%0A            case(5):%0A                return 10000;%0A            case(6):%0A                return 100000;%0A            case(7):%0A                return 1000000;%0A            case(8):%0A                return 10000000;%0A            case(9):%0A                return 100000000;%0A            case(10):%0A                return 0.1;%0A            case(11):%0A                return 0.01;%0A            default:%0A                return 1;%0A        %7D%0A    %7D%0A%7D%0A%0Apublic class Resistor %7B%0A    Color%5B%5D LocalResistor;%0A    %0A    public float countResistence(int numberOfStripes) %7B%0A        double valueOfresistance = LocalResistor%5B0%5D.getValue() + LocalResistor%5B1%5D.getValue();%0A        valueOfresistance *= LocalResistor%5B2%5D.getMultiplier();%0A        return valueOfresistance;%0A    %7D%0A    %0A    public Resistor (int numberOfStripes, Color%5B%5D StripesColors) %7B%0A       this.LocalResistor = StripesColors;%0A        %0A    %7D%0A    %0A   %0A    %0A%7D%0A

add resistor class