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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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