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

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

R = PL - 4pl. A d ad?

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.

R = PL - 4pl. A d ad?

Step by Step Solution

3.27 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javalangMath import javaioConsole public class WireResistance private static double length di... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Concepts Late Objects Questions!