Electric wire, like that in the photo, is a cylindrical conductor covered by an insulating material. The

Question:

Electric wire, like that in the photo, is a cylindrical conductor covered by an insulating material. The resistance of a piece of wire is given by the formula

where ρ 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 AWG n wire is given by the formula

Write a method

public static double diameter(int wireGauge)

that accepts the wire gauge and returns the corresponding wire diameter. Write another method

public static double copperWireResistance(double length, int 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−8 Ω m. Write a third method 

public static double aluminumWireResistance(double length, int 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 methods.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: