Question: Python Problem-2 (Total points: 15) Problem Description: Consider a basic electrical circuit containing 4 resistors which is powered by a DC (Direct Current) voltage source.

Python  Python Problem-2 (Total points: 15) Problem Description: Consider a basic electrical
circuit containing 4 resistors which is powered by a DC (Direct Current)
voltage source. A resistor is a component in electrical circuit that limits
the flow of current through it. This property is called the Resistance

Problem-2 (Total points: 15) Problem Description: Consider a basic electrical circuit containing 4 resistors which is powered by a DC (Direct Current) voltage source. A resistor is a component in electrical circuit that limits the flow of current through it. This property is called the Resistance and it has a unit named 'Ohm', denoted by A. Assume that the 4 resistor values in an electric circuit are R1 = 22, R = 50. R; = 492, R4 = 12 2. The circuit is powered by a DC source V, that generates a voltage of 10 V (olt). Specific tasks for this problem are given below. Task-1 (2 points): Create a tint that contains the resistor noen (do not include the unit when creating a list of 4 resistor values) given above and store it in a varinble namoroo, Alto, store the value of voltage given above in another variable namo volt1Printres and volt to the output In 11. GIVE THE SOLUTION FOR TASK-2 IN THIS CELLE Task-2 (2 points): Consider that resistors R, and R. are in parallel combination (le, the resistors are connected in parallel). You can now calculate an equivalent resistor of resistance based on the values of R, and R. that are now inside the list res using the Equation (1) given below. Store the value of equivalent resistor of resistance that you calculate using Equation (1) in a variable name Rp and print it to the output RR R = R+R (1) Note: You must use the idea of list indexing to get the values of R, and Re from the list res and use that to implement Equation (1) to calculate Rp. In 11: "GIVE THE SOLUTION FOR TASK-2 IN THIS CELL: Task-3 (2 points) Consider that resistors R, and R, are in series combination (e. the resistors are connected in series). You can now calculato an equivalent resistor of resistance based on the values of R, and R, that are now inside the Ist res using the Equation (2) given below, Store the value of equivalent resistor of resistance that you calculate using Equation (2) in a variable name Rs and print it to the output R = R1 + R2 (2) Note: You must use the idea of ist indexing to get the values of R, and R. from the list res and use that to implement Equation (2) to calculate Rs. In 1 1: #GIVE THE SOLUTION FOR TASK-3 IN THIS CELL: Task-4 (1.5 points): Calculate the total equivalent resistance based on Rp and Rs that you have calculated in the previous tasks using the Equation (3) given below. Store the value of total equivalent resistance in a new variable name Req and print it to the output. Reg = R,+R ... (3) In 1: "GIVE THE SOLUTION FOR TASK-6 IN THIS CELL: Task-5 (1.5 points): In this task, you have to calculate the current through the equivalent circuit based on the values of voltage volt and total equivalent resistence Roq using the famous Ohm's law that in given in Equation (4) below. Store the value of current to a new variable name it and print it to the output Voltage Current XR In 1: GIVE THE SOLUTION FOR TASKS IN THIS CELL: Task-6 (6 points): Imagine that the voltage of the equivalent circuit volt is changed from a value of 10 V to some arbitrary value V, while the 4 resistor values stored in the listres remain the same. That is create a new variable name volt2 which will contain the new value of voltage that will be (last two digits of your R. number multiplied by 2.0, volt2 2 x last two digits of your R-number). Calculate the new current using volt2 and Reg in Equation (4) again and save it to a variable named 12. Print volt2 and 12 to the output. Now, write a conditional statement that will print the following to the output based on the comparison of 12 and it values: 1) Print **More current, more power to the output if the current value 12 in greater than 11 2) Print "Less current, less power to the output if the current value 12 is less than 11 3) Print "Same current, samo power to the output if the current value 12 has the same value as 11 Note: After you finish writing the conditional statements if...elif...else, run your code and see the effect of voltage change from volt to volt21 In 1: WGIVE THE SOLUTION FOR TASK-6 IN THIS CELL: -END OF PROBLEM-2

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!