Question

Science P5.35 Electric wire, like that in the photo, is a cylindrical conductor covered by an insulat- ing material. The resistance of a piece of wire is given by the formula where p is the resistivity of the conductor, and L, A, and d are the length, cross- sectional area, and diameter of the wire. The resistivity of copper is 1.678 × 10-8 Ω m. The wire diameter, d, is commonly specified by the American wire gauge (AWG), which is an integer, n. The diameter of an AWGn wire is given by the formula 36-n d= 0.127×9239 mm Write a function def diameter(wireGauge) that accepts the wire gauge and returns the corresponding wire diameter. Write def copperwireResistance(length, wireGauge) that accepts the length and gauge of a piece of copper wire and returns the resistance of that wire. The resistivity of aluminum is 2.82 × 10-(2 m. Write a third function def aluminumwireResistance(length, wireGauge) that accepts the length and gauge of a piece of aluminum wire and returns the resistance of that wire. Write a program to test these functions.   Need this question answered in python.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

from math import pi

def diameter(wireGauge):
return 0.127*(92**((36-wireGauge)/39))


def copperWireResistance(length, wireGauge):
d = diameter(wireGauge)
area = pi*d*d
ro = 1.678*(10**(-5))
return 4*ro*length/area

def aluminumWireResistance(length, wireGauge):
d = diameter(wireGauge)
area = pi*d*d
ro = 2.82*(10**(-5))
return 4*ro*length/area

# copy pastable link: https://paste.ee/p/oJptb

Add a comment
Know the answer?
Add Answer to:
  Need this question answered in python. Science P5.35 Electric wire, like that in the photo, is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an...

    Please write the python functions Problem: Electric wire (Figure is a cylindrical conductor covered by an insulating material. Figure 2 shows the structure ofa single conductor. The resistance of a piece ofwire is given by the formula: A d where ρ is the resistivity of the conductor, and I (in meter), A, and d (in meter) are the length, cross-sectional area, and diameter of the wire. The wire diameter, d, is commonly specified by the American Wire Gauge (AWG). Which...

  • 36. What is the diameter of the wire in question 35 in millimeters? (a) 12.7 mm...

    36. What is the diameter of the wire in question 35 in millimeters? (a) 12.7 mm (b) 14.2 mm (c) 18.87 mm (d) 21.4 mm 37. Calculate the square mil area of a bus bar 4 in, thick and 34 in. wide. (a) 123,800 sq mils (b) 187,500 sq mils (c) 210,500 sq m 29 732 38. What is the circular mil area of the bus bar in question 37? (a) 238,732 (b) 110,423 (c) 289,000 (d) 542,216 39. Calculate...

  • MATLAB question: I have written a code to solve for a metals resitance. Here is the...

    MATLAB question: I have written a code to solve for a metals resitance. Here is the problem statement: Part 1 (Algorithms) – due Friday: Think about how you might solve the problem of calculating the resistance of a given group of metals depending on the type of metal, the length of the wire and the area of the wire (if given the diameter only – so you must calculate the area). Write instructions (an algorithm) for a script that behaves...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT