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, crosssectional 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
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Big Java Late Objects
Additional Engineering Textbook Solutions
Java: An Introduction to Problem Solving and Programming (8th Edition)
C++ How to Program (10th Edition)
Management Information Systems: Managing the Digital Firm (15th Edition)
Concepts Of Programming Languages
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- Q1/The pressure drop in pascals (Pa) for a fluid flowing in a pipe with a sudden decrease in diameter can be determined based on the loss of head equation given below: h = 24-11 2g Area A Area A Area A Where: V₂ is the velocity in position 2 (m/s), g: is acceleration due to gravity = 9.81 m/s², A₁ and A₂ are the cross-sectional areas of the tube in position 1 and 2 respectively. A==d² Where: d is the diameter (m). Write a program in a script file that calculates the head loss. When the script file is executed, it requests the user to input the velocity (V₂) in m/s and values of diameters (d, and d₂). The program displays the inputted value of v followed by a table with the values of diameters in the first and second columns and the corresponding values of h, in the third column. 2 2arrow_forwardIf there are two equal angles in a given triangle, then their corresponding opposite sides must be equal.arrow_forwardThe electric flux density D at the point M (0,4,0) in the region about a uniform line charge of 1 nC/m lying along the z axis in free space is: Select one: a. None of the above b. 0.6366 nC/m c. 0.2387 nC/m d. 0.039 nC/m e. 0.1 nC/marrow_forward
- A standard science experiment is to drop a ball and see how high it bounces. Once the “bounciness” of the ball has been determined, the ratio gives a bounciness index. For example, if a ball dropped from a height of 10 feet bounces 6 feet high, the index is 0.6 and the total distance traveled by the ball is 16 feet after one bounce. If the ball were to continue bouncing, the distance after two bounces would be 10 ft + 6 ft + 6 ft + 3.6 ft = 25.6 ft. Note that distance traveled for each successive bounce is the distance to the floor plus 0.6 of that distance as the ball comes back up. Write a program that lets the user enter the initial height of the ball and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball. Please name your function "bounce" that has three arguments (initial height, index, number of bounce) and return the total distance traveled by the ball. (float) Skip the part where users can enter the inputs of…arrow_forwardA simple pendulum of length L, has a maximum angular displacement e_max. At one point in its motion, its kinetic energy is K = 3 J and its potential energy is U = 4.2 J. When the pendulum's angular velocity is one-fourth its maximum value (0' = %3D O'_max/4), then its kinetic energy is:arrow_forward5. Determine the overall resistance of a 100-meter length of 14 AWA (0.163 cm diameter) wire made of the following materials. a. copper (resistivity = 1.67x10* Q•m) b. silver (resistivity = 1.59x10 Q•m) c. aluminum (resistivity = 2.65x10* Q•m) d. iron (resistivity = 9.71x10* Q•m)arrow_forward
- standard science experiment is to drop a ball and see how high it bounces. Once the “bounciness” of the ball has been determined, the ratio gives a bounciness index. For example, if a ball dropped from a height of 10 feet bounces 6 feet high, the index is 0.6, and the total distance traveled by the ball is 16 feet after one bounce. If the ball were to continue bouncing, the distance after two bounces would be 10 ft + 6 ft +6 ft + 3.6 ft = 25.6 ft. Note that the distance traveled for each successive bounce is the distance to the floor plus 0.6 of that distance as the ball comes back up. Write a program that lets the user enter the initial height from which the ball is dropped, the bounciness index, and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball.arrow_forward13.sol Matlab The electrical circuit shown consists of resistors and voltage sources. Determine the current in each resistor, using the mesh current method that is based on Kirchhoff's second voltage law. V =38 V, V = 20V, V, = 24V R, =15Ω R, = 182 R, = 10Ω R, =9Ω R, = 5Ω R, = 14Ω R, = 82 R, = 132arrow_forwardThe flight of a model rocket can be modeled as follows. During the first 0.15 s the rocket is propelled upward by the rocket engine with a force of 16 N. The rocket then flies up while slowing down under the force of gravity. After it reaches the apex, the rocket starts to fall back down. When its downward velocity reaches 20 m/s, a parachute opens (assumed to open instantly), and the rocket continues to drop at a constant speed of 20 m/s until it hits the ground. Write a program that calculates and plots the speed and altitude of the rocket as a function of time during the flight. SOLVE WITH MATLAB PLEASEarrow_forward
- Two small charged objects attract each other with a force F when separated by a distance d.If the charge on each object is reduced to one-fourth of its original value and the distance between them is reduced to d/2,the force becomes?arrow_forwardThe liquid-liquid extraction process carried out at the Electrochemical Materials Laboratory involves the extraction of nickel (Ni) from the liquid phase into an organic phase. Data from laboratory experiments are given in the table below. Ni phase cair, a (gr/l) 2 2,5 3 Ni phase organik, g (gr/l) 8,57 10 12 Assume that a is the amount of Ni in the liquid phase, and g is the amount of Ni in the organic phase. Quadratic interpolation is used to estimate the value of g, which is given by the following formula: g = x1a? + x2a + x3 a. Find three simultaneous equations based on the data given by the experimental results. b. Use the Gauss Elimination method to get the values of x1, x2 and x3 and then estimate the amount of Ni in the organic phase, if 2.3 g/l of Ni is available in the liquid phase. c. Use the LU Decomposition method to get the values of x1, x2 and x3. and then estimate the amount of Ni in the organic phase, if 2.3 g/l of Ni is available in the liquid phase.arrow_forward(Heat transfer) The formula developed in Exercise 5 can be used to determine the cooling time, t, caused only by radiation, of each planet in the solar system. For convenience, this formula is repeated here (see Exercise 5 for a definition of each symbol): t=Nk2eAT3fin A=surfaceareaofasphere=4r2 N=numberofatoms=volumeofthespherevolumeofanatom Volume of a sphere sphere=43radius3 The volume of a single atom is approximately 11029m3 . Using this information and the current temperatures and radii listed in the following chart, determine the time it took each planet to cool to its current temperature, caused only by radiation.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr