Question: Write a Python script that will read the required values from the input file. Using the voltage and resistance, compute the current in each circuit
Write a Python script that will read the required values from the input file. Using the voltage and resistance, compute the current in each circuit and the power dissipated by the resistor in each circuit. Write a function to compute the current and a function to compute the power. You should have a function to check whether the input data file exists, and there should also be a main function. Your program will produce a report in tabular format. Print the table to the computer screen and to an output file called levels.txt
Once the program is working, modify the program to account for any current that is greater than amp Instead of printing the normal column items, for any circuit with current greater than amp print the voltage, the resistance, and then print a message that the current may be fatal. The output format is shown on page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
