1.) Using Python programming language, create a SERIES CIRCUIT program.      Input:            1 voltage source            Number of resistors           Value of each resistor      Output:           Display total current and display each voltage of each resistor.      Example:           Voltage value (V): 12           Number of resistors: 2           Resistor 1 value (ohm): 6           Resistor 2 value (ohm): 4            Total current is 1.2 A           Resistor 1 voltage is 7.2 V           Resistor 2 voltage is 4.8 V

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.6: A Case Study: Radar Speed Traps
Problem 7E: (Thermodynamics) a. Design, write, compile, and run a program that determines the work,W, performed...
icon
Related questions
Question

1.) Using Python programming language, create a SERIES CIRCUIT program.

     Input: 
          1 voltage source 
          Number of resistors
          Value of each resistor

     Output:
          Display total current and display each voltage of each resistor.


     Example:
          Voltage value (V): 12
          Number of resistors: 2
          Resistor 1 value (ohm): 6
          Resistor 2 value (ohm): 4 

          Total current is 1.2 A
          Resistor 1 voltage is 7.2 V
          Resistor 2 voltage is 4.8 V 

 

 

2.) Using Python programming language, create a PARALLEL CIRCUIT program.

     Input: 
          1 voltage source 
          Number of resistors
          Value of each resistor

     Output:
          Display total current and display each current of each resistor.


     Example:
          Voltage value (V): 12
          Number of resistors: 2
          Resistor 1 value (ohm): 5
          Resistor 2 value (ohm): 8 

          Total current is 3.9 A
          Resistor 1 current is 2.4 A
          Resistor 2 current is 1.5 A 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning