Write a simple Java application which calculates the RC time constant in a simple RC circuit. Your application should ask the user to enter the capacitor and resistor values of the circuit. You must use the JOptionPane class to collect the user's input. The capacitor and resistor values should be treated as floating point values. Calculate the time constant in seconds: tc = capacitor (in farads) * resistor (in ohms). You must use the JOptionPane class to output the result. Your output must show four digits after the decimal point and contain explanatory text. Make sure you remember to import what your program will use.
Other samples, services and questions:
When you use PaperHelp, you save one valuable — TIME
You can spend it for more important things than paper writing.