Computers and Technology, 12.11.2019 01:31 haileybland8050
Create an application named percentages whose main() method holds two double variables. assign values to the variables. pass both variales to a method named computepercent() that displays the two values and the value of the first number as a percentage of the second one. then call the method a second time, passing the values inreverse order. save as percentages. java
i'm prety much done, i just need this modified to not prompt the user for any information. you
public class percentages {
public static void main(string[] args) {
string inputnumber;
double number1;
double number2;
inputnumber = joptionpane. showinputdialog(null,"plese enter the first number");
number1 = double. parsedouble(inputnumber);
inputnumber = joptionpane. showinputdialog(null,"plese enter the second number");
number2 = double. parsedouble(inputnumber);
computepercent(number1,number2);
computepercent(number2,number1);
}
public static void computepercent(double num1, double num2)
{
joptionpane. showmessagedialog(null, num1 + " is " + num1/num2*100 + "% of " + num2);
}
}
Answers: 2
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
Computers and Technology, 24.06.2019 06:30
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
Answers: 2
Create an application named percentages whose main() method holds two double variables. assign value...
English, 10.07.2019 08:00
Chemistry, 10.07.2019 08:00
English, 10.07.2019 08:00
Mathematics, 10.07.2019 08:00
History, 10.07.2019 08:00
Biology, 10.07.2019 08:00
Mathematics, 10.07.2019 08:00
History, 10.07.2019 08:00