Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Science P5.35 Electric wire, like that in the photo, is a cylindrical conductor

ID: 3596697 • Letter: S

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.

Explanation / Answer

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote