Calculate the maximum value of the resistor

Assignment Help Electrical Engineering
Reference no: EM13248614

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named res1 and is used to input a resistance value in ohms. The second JTextField variable named tol is used to input a tolerance percentage. All input values and calculations use integer values. The tolerance value is entered as an integer percentage between 1 and 100. The user clicks a JButton to perform a calculation. One JButton called min causes the program to calculate and display the minimum value of the resistor, Rmin = R - R * tolerance. Another JButton called max causes the program to calculate the maximum value of the resistor, Rmax = R + R * tolerance. The result of the selected calculation is displayed in an output text area variable named output. The output string should say something like this: "The max resistance value of a 100 ohm resistor with a 10 percent tolerance is 110 ohms". Clicking one of the buttons generates the event which causes the program to do the selected calculation and update the output area. Assume the user interface has already been implemented and the member variables listed above exist. Your job is to write the ButtonHandler inner class which handles the events from the two buttons.

Reference no: EM13248614

Questions Cloud

What is the bit rate of the corresponding pcm signal : A message signal, x(t) has a bandwidth of 15 kHz and an average power of 0.5 W. This signal is to be uniformly quantized with an input range of range of +-5 V. What is the bit rate of the corresponding PCM signal if the SQNR is to be greater than ..
Explain what is the percent error of the trial : If the correct mass percentage of HC2H3O2 in the vinegar is 5.40%, why does trial 2 give the best results. What is the percent error of this trial
Identify two key components of service system quality : Identify two key components of service system quality. Explain why these components are particularly important to service system quality (when compared to manufacturing system quality).
What did carlos ghosn and nissan do in order manage global : What did Carlos Ghosn and Nissan do in order to manage global financial risk and why?
Calculate the maximum value of the resistor : Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named res1 and is used to input a resistance value in ohms. The second JTextField variable named tol is used to ..
State a technician in a large pharmaceutical research firm : As a technician in a large pharmaceutical research firm, you need to produce 200 mL of 1.00 M a phosphate buffer solution of pH = 7.06. The pKa of H_2PO_4}^- is 7.21. You have 2.00 L of 1.00 M KH_2PO_4 solution and 1.50 L of 1.00 M K_2HPO_4 soluti..
Explain prepare a buffer solution that has a ph : How many grams of dry NH_4Cl need to be added to 2.10 L of a 0.700 M solution of ammonia, NH_3, to prepare a buffer solution that has a pH of 8.79? K_b for ammonia is 1.8 times 10^{-5}.
Define and explain the term authority : Define and explain the term authority, and discuss the bases of authority. How does authority differ from power? Explain how people or departments within organizations can gain power through control of resources and through solving key organizatio..
Explain potassium phosphate buffer solution of ph : As a technician in a large pharmaceutical research firm, you need to produce 400 mL of 1.00 M potassium phosphate buffer solution of pH = 7.29. The pKa of H_2PO_4^- is 7.21.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  How to write f as a canonical sum-of-products

(a) Write f as a minterm list (that is, in the form fm(*)). (b) Write f as a canonical sum-of-products. (c) Simplify the expression from part (b). (d) Write f as a maxterm list (that is, in the form fM(*)). (e) Write f as a canonical product-of-sums...

  How does the receiver detect errors

With the 1s complement scheme, how does the receiver detect errors? Is it possible that a one bit error will go undetected? How about a two bit error?

  Write down all of the frequency components

Four frequencies are applied at the input of a non-linear amplifier. Write down all of the frequency components at the output of the non-linear device. Write down only the first three harmonics.

  Find the value of the lumped elements c and l

A.) We would like to use a series lumped element b to match this load. What is the length of the line where the normalized input impedance is z= 1-jb(d/\lambda). If the rfequency is 1GHz , find the value of the lumped element(C or L).

  Calculate the real and reactive power at the sending-end

A 60 Hz, three-phase, transposed transmission line has the following parameters: Z = 13.114+ j52.952, Y = j0.311/1000. The sending-end line-to-line voltage is 161 kV. The total receiving-end load is represented by ZL =143 with an angle

  Calculate count that should appear in timer capture register

Calculate the count that should appear in the timer capture register TC0 if a 125 kHz rectangular wave is inputted on timer pin PT0 while TCTL4 is preset for falling edge detection. Assume a 24 MHz e-clock, TMSK2 was programmed

  Determine the transfer function for a first order filter

Determine the transfer function for a first order low pass filter with a cutoff frequency of 1000 radians per second and passband gain of 1 using Chebyshev type with 1-dB ripples on the passband.

  Calculate ratio of the area to volume for unit cube

calculate ratio of the area to volume for unit cube, a unit sphere inscribed inside the cube and as right cylinder inscribed inside the cube.

  Derive the complete high-frequency model when vd given

A pn junction diode has Vd= 690 mv, C=6pF, Id= 500 microamps, Vt=.0259 V. It also has C=4pF when Id= 100 microamps. Derive the complete high-frequency model when Vd=610mV.

  What is the theoretical thermal noise level

Earth-based 802.11a or 802.11g wireless LAN standards transmit data using a bandwidth of 16.56 MHz. What is the theoretical thermal noise level (in V) in an ideal receiver operating with an input impedance of 50 ohms

  At what time will the voltage across the capacitor

Signal generator‘s internal impedance is purely resistive and has an open-circuit voltage of 3.5 V. When the generator is loaded with 22 ohms of resistance, its terminal voltage drops to 2.8 V. What is the generator's output impedance (pure resist..

  Calculate the magnitude and direction of the electric field

Line A extends from (2,2, 0) to (-2, 2, 0) and Line B extends from (2, -2, 0) to (-2, -2, 0). Each has a linear charge density l = 1 nC / m. You want to calculate the magnitude and direction of the electric field due to the two line charges for al..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd