Write a simple java application

Assignment Help Computer Engineering
Reference no: EM13323267

Write a simple Java application which calculates the power dissipation in a simple circuit. Your application should ask the user to enter the voltage and resistance values of the circuit. You must use the Scanner class to collect the user's input. The voltage and resistance values should be treated as floating point values. Calculate the power: power = voltage * voltage / resistance. You must use a JOptionPane to output the result. Your output must show three digits after the decimal point. Make sure you remember to import what your program will use.

Reference no: EM13323267

Questions Cloud

Estimate the wavelength of the light : A double-slit apparatus consists of two of slits separated by 0.25 mm with a screen 5.0 cm away. Calculate the wavelength of the light
Does requested calculation and displays appropriate result : Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named voltage and is used to input a voltage value in volts.
Determine the combined amounts of water evaporated : while groundwater andinfiltration losses over the period were estimated to be 0.6 inches. Determine the combined amounts of water evaporated and transpired from the region during the year of record.
What is the mass of the second sample : The same activity is measured for two different isotope samples. One sample contains 0.0450 kg of (atomic mass = 230.033 937 u, t1/2 = 20.8 days). What is the mass of the second sample
Write a simple java application : Write a simple Java application which calculates the power dissipation in a simple circuit. Your application should ask the user to enter the voltage and resistance values of the circuit.
Calculate the the oritical oxygen demand of a solution : Calculate the the oritical oxygen demand (mg/L) of a solution containing 450 mg of glucose(C6H12O6) in 2 liters of distilled water.
Explain barium and lead both produce a yellow precipitate : Barium and lead both produce a yellow precipitate as part of their confirmation tests. How would differentiate the two
What energy level was the electron in initially : Light of wavelength 60nm illuminates a hydrogen atom in an excited state. What energy level was the electron in initially
Determine the ultimate bod and 5-day bod of the sample : A result of a 7-day BOD test performed on a sample from anoligotrophic lake was 10 mg/L. The base 'e' BOD rate constantdetermined from previous studies was estimated to be 0.10d-1.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Is filename generation happen on variable assignment

Will the following command always rightly loop through each of the positional parameters?

  Declare amdahls law

Declare Amdahl's law

  Avoiding breaches in health care information system

Analyze the financial and privacy impacts of the breaches to health care information systems and make at least two recommendations in order to prevent such breaches in future.

  What are the advantages and disadvantages of approach

consider whether or not the same people who develop the software should be tasked with maintaining it or whether or not a separate group must be tasked with development of software and separate group with maintaining it.

  Relationship between hardware and software

What are the relationship between hardware and software.

  Assess the security risks

As part of your project in order to assess the security risks in order to compute the infrastructure, you have discovered that other managers often have several ideas on the severity and levels of the risk.

  Modify a single program using control structures

For your strength of materials course you will write down a single program using control structures(including nested loops)and file I/O to explore the deflection of the cantilever beam with a point load at the free end.

  Create a function definition called addarray

Write down a function definition called addarray that takes two parameters- one an array as an int and the other an int that contains the number of elements of the array. The function would return the sum of the number of elements of the array as ..

  Define how contextual links would benefit the site

One of the most powerful hypertext capabilities is the the contextual link. Wikipedia.com is a great example of a site that utilizes contextual links. Provide the link for a site that successfully uses contextual links, and find one site that does..

  Imagine we want to add to the sterling class

a penny may be further divided into halfpennies and farthings -> farthing worth 1/4 of a penny. There was a halfpenny coin, farthing coin, halffarthing coin.

  Algorithm for carrying out concatenation operation

Develop an algorithm that concatenates T1 and T2 into the single binary search tree. The worst case running time must be O(h), where h is the maximum of h1 and h2, the heights of T1 and T2.

  Write down a big-inteter calculator program

note down a big-inteter calculator program that allows the user to enter two large integers and the operation to be performed and that calls the appropriate function to carry out the designated operation.

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