Question: C code only please Problem 2 (35 points): You get a job working for an electrician who regularly uses resistors in his circuits. He wants

C code only please

C code only please Problem 2 (35 points): You get a job

Problem 2 (35 points): You get a job working for an electrician who regularly uses resistors in his circuits. He wants you to create a computer program that can help him translate the color code printed on the resistors into its value (in Ohm (2)) based on the chart below. Typically, there are 4 color bands on the resistor: 3 color bands for resistor value and the 4th one is for the tolerance value. Your boss only care about the value of the resistor (only the first 3 color bands) Tolerance band Second colour band Third colour band First colour band Black Red Orange Yellow Green Blue Violet Grey White Black Brown Red Orange Yellow Silver multiply by 0.01 Gold multiply by 0.1 Black multiply by 1 Brown multiply by 10 Red multiply by 100 Orange multiply by 1,000 Yellow multiply by 10,000 Green multiply by 100,000 Blue multiply by 1,000,000 3 3 reen Blue Violet Grey White 6 Figure 1: Resistor Color Code Source: http://www.bbc.co.uk/schools/gcsebitesize/design/images/el resistor colours.gif To read the figure above is The first color band represents the 10th digit o The second color band represents the unit digit o The third color band is the multiplier For example, -if the color band is Yellow Violet Red (as shown in figure above) Then Therefore the resistor value is 4 7 *100 47 100 4700 Ohm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!