![]() ![]() (This book reads like the ingredients list of a Hostess product.) I WILL make this one work! …and I do appreciate you’re help. I’m still going to do this one but It will take me a day or two to thoroughly read up. The task is to find the resistance, tolerance and wattage rating using the given color codes. According to the syllabus, we’re not even going to cover those chapters. Resistance 01 x 100 ohms +/- 0.5 Time Complexity: O (1) Auxiliary Space: O (1) Program to find the resistance of 5-Band Resistor Given five strings A, B, C, D and E which denotes the color codes of the 5-band resistor. You’re answer makes sense…but I had to jump ahead four chapters to find it in my text book. The name of those colors are not real strings, there are numbers, integers camouflaged in a layer of abstraction so you don't have to deal with the number per se. I'm sure my mistake is obvios, just not to me. The program will run but after I enter the first code, it jumps to the end and displays a nonsense answer. I am using an "enum" data type to assign a number value to each color code. I have attempted a program that gives the ohm value of a resistor when the color code is entered in. I'm new to any type of programming and this C code just doesn't seem to be working. What a great site! I'm looking fo a hint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |