Question: public class Panes 1 Fa 2 4 { public static void main ( String [ ] args ) { String name; String [ ] prompts
public class PanesFa
public static void mainString args
String name;
String prompts new String "What is your age? "What is your annual income?
"What is your name? ;
String messages new String "Hello, Your age is and your income is
"End of Program!" ;
int age;
String strAge;
double income;
String strIncome;
strAge JOptionPane.showInputDialogprompts;
age Integer.parseIntstrAge;
strIncome JOptionPane.showInputDialogprompts;
income Double.parseDoublestrIncome;
name JOptionPane.showInputDialogprompts;
JOptionPane.showMessageDialognull messages name messages
age messages String.format$fincome;
JOptionPane.showMessageDialognull messages;
System.exit;
can you fix it please. solve this program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
