Question: Please help with task 1 , 2 , 3 , and 4 TASK 4 ( 1 0 - 1 5 min ) :In your main

Please help with task1,2,3, and 4
TASK 4(10-15 min):In your main script, based on the user's choice from Task 1, accomplish the following: If the user chose to convert a resistance to a color band, prompt the user to enter a resistance [ohms] as a vector, with each digit being a separate value in the vector. First, check that all digits entered after the first two digits are zeros. If they are not, produce an error message that terminates the program. Then, using Resist2Color, convert the resistance entered by the user to its corresponding color band and output the colors to the command window. If the user chose to convert a color band to a resistance, prompt the user enter the color band as one string array in a single input statement. First, check that there are only three colors entered. If not, produce an error message that terminates the program. Next, using Color2Resist, convert the color band entered by the user to its corresponding resistance [ohms] and output this to the command window.
Please help with task 1 , 2 , 3 , and 4 TASK 4 (

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 Programming Questions!