Python List/Array Structure Electric circuit, path for transmitting electric current. An electric circuit includes a device that gives energy to the charged particles constituting the current, such as a battery or a generator; devices that use current, such as lamps, electric motors, or computers; and the connecting wires or transmission lines. Two of the basic laws that mathematically describe the performance of electric circuits are Ohm's law and Kirchhoff's rules. (Electrical Engineering problem). I=2A R = 120 V-24v Write a program that stores the following resistance values in a List/Array named resistance: 12, 13, 81, 56, 39, 27, 5, and 16. Your program should also create two additional Lists named current and power, each capable of storing eight real or floating numbers. Using a for loop and an input statement, have your program accept eight 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 a valid value. Your program should store the values of the power List. To calculate the power, use the formula given below. P= 48W power = 1² R Where the symbol I means the current and R is for the resistance. For example, power[0] = (current[0]**2) resistance [0]. Using the loop concepts, your program should then display the output in ascending order by the resistance values (fill in the chart). The output should be displayed in a tabular format. Resistance Power Current ? 5 ? 12 ? 13 ? 16 27 39 56 81 Total: ?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Python code
Python List/Array Structure
Electric circuit, path for transmitting electric current. An electric circuit includes a device that
gives energy to the charged particles constituting the current, such as a battery or a generator;
devices that use current, such as lamps, electric motors, or computers; and the connecting wires
or transmission lines. Two of the basic laws that mathematically describe the performance of
electric circuits are Ohm's law and Kirchhoff's rules.
(Electrical Engineering problem).
I=2A
R = 120
V-24V
Write a program that stores the following resistance
values in a List/Array named resistance: 12, 13, 81, 56,
39, 27, 5, and 16. Your program should also create two
additional Lists named current and power, each capable
of storing eight real or floating numbers. Using a for
loop and an input statement, have your program accept
eight 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 a valid value. Your program should store the values of the power List. To calculate the power, use
the formula given below.
P = 48W
power = 1² R
Where the symbol I means the current and R is for the resistance.
For example, power[0] = (current[0]**2)* resistance [0]. Using the loop concepts, your program should
then display the output in ascending order by the resistance values (fill in the chart). The output should be
displayed in a tabular format.
Resistance
Current
Power
?
5
?
12
?
13
2
16
27
39
56
81
Total: ?
Transcribed Image Text:Python List/Array Structure Electric circuit, path for transmitting electric current. An electric circuit includes a device that gives energy to the charged particles constituting the current, such as a battery or a generator; devices that use current, such as lamps, electric motors, or computers; and the connecting wires or transmission lines. Two of the basic laws that mathematically describe the performance of electric circuits are Ohm's law and Kirchhoff's rules. (Electrical Engineering problem). I=2A R = 120 V-24V Write a program that stores the following resistance values in a List/Array named resistance: 12, 13, 81, 56, 39, 27, 5, and 16. Your program should also create two additional Lists named current and power, each capable of storing eight real or floating numbers. Using a for loop and an input statement, have your program accept eight 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 a valid value. Your program should store the values of the power List. To calculate the power, use the formula given below. P = 48W power = 1² R Where the symbol I means the current and R is for the resistance. For example, power[0] = (current[0]**2)* resistance [0]. Using the loop concepts, your program should then display the output in ascending order by the resistance values (fill in the chart). The output should be displayed in a tabular format. Resistance Current Power ? 5 ? 12 ? 13 2 16 27 39 56 81 Total: ?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY