Home / Expert Answers / Computer Science / in-python-write-a-script-that-calculates-the-maximum-and-minimum-values-of-resistance-given-a-toler-pa497

(Solved): IN PYTHON: Write a script that calculates the maximum and minimum values of resistance given a toler ...



IN PYTHON: Write a script that calculates the maximum and minimum values of resistance given a tolerance (5% or 10%). The values should be formatted and printed in exponential notation in 3 columns (Resistance, Max, and Min).
For example, for a list of resistance values R_list = [3.0, 6.2, 9.1, 470K, 6.2K, 100K, 2.0, 4.3, 82K] (in Ohms) and 5% tolerance, the output should look like this: \( \begin{array}{ccc}\text { Resistance (Ohms) } & \text { Min } & \text { Max } \\ & \text { Tolerance: } 5.0 \% & \\ 3.00 \

\( \begin{array}{ccc}\text { Resistance (Ohms) } & \text { Min } & \text { Max } \\ & \text { Tolerance: } 5.0 \% & \\ 3.00 \mathrm{E}+00 & 2.850 \mathrm{E}+00 & 3.150 \mathrm{E}+00 \\ 6.20 \mathrm{E}+00 & 5.890 \mathrm{E}+00 & 6.510 \mathrm{E}+00 \\ 9.10 \mathrm{E}+00 & 8.645 \mathrm{E}+00 & 9.555 \mathrm{E}+00 \\ 4.70 \mathrm{E}+05 & 4.465 \mathrm{E}+05 & 4.935 \mathrm{E}+05 \\ 6.20 \mathrm{E}+03 & 5.890 \mathrm{E}+03 & 6.510 \mathrm{E}+03 \\ 1.00 \mathrm{E}+05 & 9.500 \mathrm{E}+04 & 1.050 \mathrm{E}+05 \\ 2.00 \mathrm{E}+00 & 1.900 \mathrm{E}+00 & 2.100 \mathrm{E}+00 \\ 4.30 \mathrm{E}+00 & 4.085 \mathrm{E}+00 & 4.515 \mathrm{E}+00 \\ 8.20 \mathrm{E}+04 & 7.790 \mathrm{E}+04 & 8.610 \mathrm{E}+04\end{array} \)


We have an Answer from Expert

View Expert Answer

Expert Answer


Program to calculates the maximum and minimum values of resistance given a tolerance of 5% in Python programming language def caluclate(): #def calucl
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe