+ 2

How to draw resistor and calculate resistance based on color coding ?

Based on color input calculate resistance and draw resistor using ohms law

19th Dec 2017, 11:09 AM
Pundarikakshasarma Vedam
Pundarikakshasarma Vedam - avatar
5 Respuestas
+ 5
Can you write a more understandable question? So that people can understand you and help you. :)
19th Dec 2017, 11:14 AM
James16
James16 - avatar
+ 2
Here you go, a resistor with code code in CSS only. https://code.sololearn.com/Wzw1S9L4uawg/?ref=app @Pundarikak, Your turn now, to make it interactive using Javascript please.
19th Dec 2017, 12:21 PM
Calviղ
Calviղ - avatar
+ 2
calvin@ resistor color code using js https://code.sololearn.com/W4rGaxPzV32d/?ref=app
20th Dec 2017, 11:45 AM
Pundarikakshasarma Vedam
Pundarikakshasarma Vedam - avatar
+ 2
@Pundarjkakshasatma well done
20th Dec 2017, 1:10 PM
Calviղ
Calviղ - avatar
0
It's a simple sum and multiplication. Just give each color a code like red='r' or something like it and then parse the input and operate. The values of each color can be checked on the internet. Please do a bit of research or try it on your own before posting.
19th Dec 2017, 11:17 AM
spcan
spcan - avatar