Question: Write a program that initializes and stores the following resistance values in an Array/List named resistance: 12, 16, 27, 39, 56, and 81. Your

Write a program that initializes and stores the following resistance values in an Array/List named

Write a program that initializes and stores the following resistance values in an Array/List named resistance: 12, 16, 27, 39, 56, and 81. Your program should also create two additional Lists named current and power, each capable of storing six float numbers. Using a for loop and an input statement, have your program accept six user-input numbers in the current List when the program is run. Validate the input data and reject any zero or negative values. If a zero or a negative value is entered, the program should ask the user to re-enter the value. Your program should store the values of the power List. To calculate the power, use the formula given below. power = 1 R V = 24v I = 2A For example, power [0]= (current[0]**2) * resistance[0]. Using loop, your program should then display the following output (fill in the chart). The output should be aligned. Consider exploring Python format' statement. Resistance 12 16 27 39 56 81 Total: ? Current ? R= 120 P = 48W ? Power ? 2.

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lists and Variables declaration Resistance121627395681 Current6 capable of storing 6 values of flaot ... View full answer

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!