Question: Language: MATLAB This is the second time i'm posting this, please provide the correct solution. For help, i'm posting a solution that works almost fine

 Language: MATLAB This is the second time i'm posting this, please

Language: MATLAB

This is the second time i'm posting this, please provide the correct solution. For help, i'm posting a solution that works almost fine :)

A={'black','brown','red','orange','yellow','green','blue','violet','grey','white','gold','silver'}; while(1) i=1; n=0; while(i10) in=10-in; else in=in-1; end n=n*10^(in); else if (in 5-band Resistor color code 3rd BAND Multiplier Tolerance BROWN ORANGE VIOLET WHITE SILVER Write a Matlab program that displays the resistor value and tolerance for a ban resistor color code defined in the Table a Your program MUST perform the ollaing tasks: Prompt the user to ENTER via keyboard a FIVE-COLOR SEOUENCE, where each color MUST be inputted as distinst strings, corresponding to the color bands of a resistor (see Table above). The OUTPUTS of your program MUST be the resistor value and tolerance (see examples below) Note: Single characters shouldNOT BEUSED as color nputs. 2. Your program MUST accept different color input formats such as Blue, blue or BLUE, and MUSI also sheek for possible input errors such as the color was misspelled or it was not a valid color. In hese cases your program must allow the ser to retype the inputted color(s) without the need to rerun the program 3. Your program MUST also display the resistor values (R) in ohms, Kilo-ohms, Mega-ohms or Giga-Ohms using the following resistor range value 3. Your program MUST also display the resistor values (R) in Ohms, Kilo-ohms, Mega-ohms or Giga-ohms using the following resistor range values: 0 s R

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!