One form of Ohm's law is: E = IXR where, E is the applied voltage...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
One form of Ohm's law is: E = IXR where, • E is the applied voltage and is measured in volts (V) • I is the circuit current and is measured in amperes (A) • R is the circuit resistance and is measures in ohms (2) To find E when I = 5mA and R = 2.7KQ, first convert 5mA to 5×10-³A, 2.7K to 2.7×10302 and then perform the following calculation: E=5×10-3A × 2.7×1032 = 13.5V. Instruction: 1. Use Notepad to create new text file named “EX10_1.java”. Enter the following two lines (be sure to replace YourFullName with your full name): // FileName: EX10_1.java // Programmer: YourFullName 2. Create a Java program that: (a) creates a "supporting class” name “Ohm" which contains one method named "getOhm" that takes two inputs, I (circuit current) and R (circuit resistance), to return the calculation result of E = IXR; (b) create a "EX10_1" class with the "main" method in it; (c) in the "main" method takes two double values, I and R; (d) create an instance of the "Ohm" class and use it to call the "getOhm" method with the two double values (I and R) passing to the "getOhm" method; and (e) display the returned calculated value in a message box. Be sure to use ampere (A) and ohm (2) as units. One form of Ohm's law is: E = IXR where, • E is the applied voltage and is measured in volts (V) • I is the circuit current and is measured in amperes (A) • R is the circuit resistance and is measures in ohms (2) To find E when I = 5mA and R = 2.7KQ, first convert 5mA to 5×10-³A, 2.7K to 2.7×10302 and then perform the following calculation: E=5×10-3A × 2.7×1032 = 13.5V. Instruction: 1. Use Notepad to create new text file named “EX10_1.java”. Enter the following two lines (be sure to replace YourFullName with your full name): // FileName: EX10_1.java // Programmer: YourFullName 2. Create a Java program that: (a) creates a "supporting class” name “Ohm" which contains one method named "getOhm" that takes two inputs, I (circuit current) and R (circuit resistance), to return the calculation result of E = IXR; (b) create a "EX10_1" class with the "main" method in it; (c) in the "main" method takes two double values, I and R; (d) create an instance of the "Ohm" class and use it to call the "getOhm" method with the two double values (I and R) passing to the "getOhm" method; and (e) display the returned calculated value in a message box. Be sure to use ampere (A) and ohm (2) as units.
Expert Answer:
Answer rating: 100% (QA)
Here is a Java program that meets the given instructions FileName EX10... View the full answer
Related Book For
A First Course in the Finite Element Method
ISBN: 978-1305635111
6th edition
Authors: Daryl L. Logan
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
Determine the force P needed to support the 100 lb weight. Each pulley has a weight of 10 lb. Also determine the reactions at A and B. Figure 2 in
-
Four identical textbooks, each of length L, are stacked near the edge of a table, as shown in FIGURE 9-45. The books are stacked in such a way that the distance they overhang the edge of the table,...
-
What are some objectives that management might choose for a study?
-
One critical-thinking skill is a heightened awareness of the danger of reaching a conclusion prior to acquiring missing information that were it known would have a reasonable probability of altering...
-
American International Automotive Industries (AIAI) manufactures auto and truck engine, transmission, and chassis parts for manufacturers and repair companies in the United States, South America,...
-
8. Let's assume that firm T faces a downward-sloping (straight-line) demand curve. (a) Fill in the columns for TR and MR in the table below. (Note that the figures for MR are entered between 0 and 1,...
-
Kolbec Community College (KCC) has 4,000 full-time students and offers a variety of academic programs in three areas: professional studies, arts, and technology. The professional studies programs...
-
Question Description Record the transactions Record the transactions, You started your company with $80,000 that you raised by selling stock in Practice Makes Perfect Inc. to your family and friends....
-
The efficiency of a human ( intake vs output ) is not the same for everyone. What factors might affect the efficiency of humans, and how would you predict those factors would affect ( increase or...
-
A fluid has a mass density of 1,265 kg/m 3 . How many cubic meters of this fluid weighs 100 pounds on Earth? (1 kg weighs 2.2 pounds on Earth).
-
You place a crate of mass 3 5 . 6 kg on a frictionless 4 . 7 7 - meter - long incline. You release the crate from rest, and it begins to slide down, eventually reaching the bottom 1 . 2 8 s after you...
-
A butcher suspends a roast of beef from a spring scale, calibrated in newtons, in the elevator of an abattoir. The spring scale shows the highest reading when the elevator is at rest at a floor b....
-
An electric clothes dryer is rated at 3000 W. How much energy (in kWh) does it use in 22 min? A resistor in an electronic circuit has a resistance of 38,425 ohms and has 300 microamps flowing...
-
A company's annual revenues dropped from 450000 in the year 2005 to 343,000 in 2008. Assume that the revenue is declining exponentially. (a) What is the expected revenue in 2010? (b) What is the...
-
Les has collected stamps in his spare time for years. He purchased many of his stamps at a price much lower than the current market value. Les recently lost his job as a carpenter. Since his wife...
-
Show that ([A][B])T =[B]T [A]T by using bu b12 b13 [B] = b21 b22 b23 12 1 [A] = ). 0
-
Design the support members AB and CD for the platform lift shown in Figure P5-61. Select a mild steel and choose suitable cross-sectional shapes with no more than a 4 : 1 ratio of moments of inertia...
-
For the square two-dimensional body shown in Figure P13-25, determine the temperature distribution. Let Kxx = Kyy = 10 Btu/(h-ft-oF) and h 510 Btu/(h-ft2 -oF). The top face is maintained at 400 oF,...
-
Martin Galloway, the sole proprietor of a consulting business, has gross receipts of $45,000 in 2017. His address is: 1223 Fairfield Street, Westfield, New Jersey and his SSN is 158-68-7799. Expenses...
-
Probest Corporation (a calendar-year corporation) purchased and placed the following assets in service during the year All assets are used 100 percent for business. $100,000 of the cost of the...
-
In May 2016, Jose purchased a used automobile for $12,000 and used it 75 percent for business. No Section 179 election was made for this asset. In 2017, Joses business use of the automobile decreased...
Study smarter with the SolutionInn App