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

  What range of k that makes the impulse response to zero

In the difference equation below K is a real number greater than 0. y[n) = x[n] + Ky[n] A) (2pt)Find the range of values of K that makes the impulse response grow without bound. B)

  Discuss the differences between fet and bjt transistors

discuss the differences between FET and BJT transistors. What are the advantages and disadvantages of each kind of transistor What are types of transistors do you know about

  Determine the image frequency and the local oscillator

1-for an FM reciever tuned to 94.5 MHZ using high side-injection and a first IF of 10.7 MHZ, Determine the image frequency and the local oscillator

  A unit for a telecommunications system is to be designed

A unit for a telecommunications system is to be designed so as to have a minimum availability of 0.9994. The MTTR (mean time to repair) for the unit is estimated to be 24 hours.

  Determine what villages will the meyer read now

A student acquires a 50mV, 1mA (meter-A) and a 50mV , 2mA (Meter-b) d'arsonval movements and converts both the meters to measure 100v full scale individually. A potential divider consisting of 70k and30k resistors was powered using an ideal 100v D..

  Determine carrier frequency and intelligence frequency

an fm transmitter delivers to a 50 ohm antenna a signal voltage of V(t)= 75sin(10^8 t+2 sin 10^3t) determine(a) carrier frequency (b) Intelligence frequency (c) modulation index (d) Total Power in FM signal

  Calculate amount of work done if all losses are neglected

A container with a plunger compresses one pound mole of an ideal gas from 1 atmospheres pressure to 10 atmospheres. Calculate the amount of work done if the process is considered to be polytropic.

  Calculate the force in pounds on the steel rod

The voltage output from a two active gage of Wheatstone bridge was 3.5 mV. The excitation voltage was 5 V. Nominal resistance of the strain gage was 350 ohms and the gage factor was 2.05. Calculate the force in pounds on the steel rod.

  Express h in standard form for drawing a bode plot

Plot the Bode straight-line approximation phase plot (i.e., f(f) vs. f) for the transfer function over the range f = 10 rad/s to f = 100 krad/s using the 4-cycle semi-log graph paper provided. Label all slopes in degrees/dec and all levels in degr..

  Amplify the signal of a microphone with internal resiatance

What value of emitter resistor would you choose, if: a) You have to amplify the signal of a microphone that has an internal resistance of 100K using a Common Emitter bias configuration b) you have to drive a load of 50 with an Emitter Follower cir..

  What local oscillator frequency would you use

For the local oscillator you selected, what transmission frequencies could cause interference to the satellite system and how could the interference be avoided? Show a diagram.

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